Review-Trigger #10282
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: Review-Trigger | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- review_requested | |
- review_request_removed | |
- ready_for_review | |
pull_request_review: | |
merge_group: | |
jobs: | |
trigger-review-bot: | |
# (It is not a draft) && (it is not a review || it is an approving review) | |
if: ${{ github.event.pull_request.draft != true && (github.event_name != 'pull_request_review' || (github.event.review && github.event.review.state == 'APPROVED')) }} | |
runs-on: ubuntu-latest | |
name: trigger review bot | |
steps: | |
- name: Skip merge queue | |
if: ${{ contains(github.ref, 'gh-readonly-queue') }} | |
run: exit 0 | |
- name: Get PR number | |
env: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | |
run: | | |
echo "Saving PR number: $PR_NUMBER" | |
mkdir -p ./pr | |
echo $PR_NUMBER > ./pr/pr_number | |
- uses: actions/upload-artifact@v3 | |
name: Save PR number | |
with: | |
name: pr_number | |
path: pr/ | |
retention-days: 5 |