mirror of
https://github.com/System-End/hackpad.git
synced 2026-04-19 22:15:14 +00:00
fixed workflow
This commit is contained in:
parent
a5ae45623f
commit
455ef8e868
1 changed files with 13 additions and 11 deletions
24
.github/workflows/comment_pr.yml
vendored
24
.github/workflows/comment_pr.yml
vendored
|
|
@ -1,16 +1,18 @@
|
|||
on:
|
||||
workflow_dispatch
|
||||
on:
|
||||
workflow_dispatch: # Allows you to trigger the workflow manually
|
||||
|
||||
jobs:
|
||||
example_comment_pr:
|
||||
comment:
|
||||
runs-on: ubuntu-latest
|
||||
name: An example job to comment a PR
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Comment PR
|
||||
uses: thollander/actions-comment-pull-request@v3
|
||||
with:
|
||||
message: |
|
||||
Hey!! Nice job on your hackpad submission. This is alexren // @qcoral sending this automation to let you know that the submission guidelines have been updated, please follow https://hackpad.hackclub.com/submitting again. Sorry for the confusion!! Hopefully this won't be needed again.
|
||||
- name: Comment on all open PRs
|
||||
run: |
|
||||
PRS=$(gh pr list --state open --json number -q '.[].number')
|
||||
for PR in $PRS; do
|
||||
gh pr comment $PR --body "Hey!! Nice job on your hackpad submission. This is alexren // @qcoral sending this automation to let you know that the submission guidelines have been updated, please follow https://hackpad.hackclub.com/submitting again. Sorry for the confusion!! Hopefully this won't be needed again."
|
||||
done
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue