Store_Review_Event #3
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: Store_Review_Event | |
on: | |
pull_request_review: | |
types: [submitted] | |
branches: | |
- master | |
- tmp/ci-testing | |
permissions: read-all | |
jobs: | |
Store_Review_Event: | |
runs-on: ubuntu-latest | |
name: Store Review Event | |
steps: | |
- name: Check if review is approved and branch is correct | |
if: github.event.review.state != 'approved' || (github.event.pull_request.base.ref != 'master' && github.event.pull_request.base.ref != 'tmp/ci-testing') | |
run: | | |
echo "Skipping workflow as the review is not approved or the base branch is not master or tmp/ci-testing." | |
exit 1 | |
- name: Upload event JSON as artifact | |
if: github.event.review.state == 'approved' && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'tmp/ci-testing') | |
uses: actions/upload-artifact@v4 | |
with: | |
name: eventjson | |
path: "${{ github.event_path }}" | |
retention-days: 7 |