mirror of
https://github.com/mshick/add-pr-comment.git
synced 2025-12-31 14:20:32 +11:00
feat: allowing action to run on non PR triggers
This commit is contained in:
parent
0dbf59e6db
commit
5aa3ae408c
7 changed files with 116 additions and 29 deletions
22
.github/workflows/test-master.yml
vendored
Normal file
22
.github/workflows/test-master.yml
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
name: "test-local"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Add Comment
|
||||
uses: ./
|
||||
with:
|
||||
message: |
|
||||
**Hello MASTER!**
|
||||
🌏
|
||||
!
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
allow-repeats: false
|
||||
|
|
@ -7,13 +7,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- run: npm ci
|
||||
|
||||
- uses: ./
|
||||
with:
|
||||
message: |
|
||||
**Hello!**
|
||||
**Hello PULL!**
|
||||
🌏
|
||||
!
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue