Skip to content

Commit

Permalink
Add pr-comment.yaml action to default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarshall committed Mar 28, 2022
1 parent 132abaf commit 3484e38
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pr-comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Add PR comment

on:
workflow_run:
workflows: ["Generate PDFs"]
types:
- completed

jobs:
comment:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run_id: ${{ github.event.workflow_run.id }}
steps:
- name: Download artifacts
run: |
gh run download -n pdf $run_id
cat environ.txt >> $GITHUB_ENV
- name: Add PR comment
run: |
env
gh pr comment --body "Hello, this is dog." $pr_number

0 comments on commit 3484e38

Please sign in to comment.