Changes Requested #224
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Changes Requested | |
on: | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
changes-requested: | |
if: github.event.review.state == 'changes_requested' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Explanation | |
run: echo "This workflow triggers a workflow_run; it's necessary because otherwise the repo secrets aren't available for 'pull_request_review' events from externally forked pull requests" | |
- name: Save PR number to context.json | |
run: | | |
printf '{ | |
"pr_number": ${{ github.event.pull_request.number }} | |
}' >> context.json | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: context.json | |
path: ./ |