File tree Expand file tree Collapse file tree 2 files changed +26
-72
lines changed
Expand file tree Collapse file tree 2 files changed +26
-72
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ name: Integration Tests
33on :
44
55 pull_request :
6- branches : [ main ]
6+ types : [opened, synchronize]
7+
8+ merge_group :
9+
710
811jobs :
9- check :
10- name : Run Check
12+ write-message :
13+ if : github.event_name == 'pull_request'
14+ name : Write Message
1115 runs-on : ubuntu-latest
1216
1317 steps :
3842 Run integration tests using the corresponding workflow:
3943
4044 Inputs:
41- pull_request_number= ${{github.event.pull_request.number}}
42- commit_sha= ${{ github.event.pull_request.head.sha }}
45+ PR Number: ${{github.event.pull_request.number}}
46+ Commit SHA: ${{ github.event.pull_request.head.sha }}
4347
4448 This check will be approved automatically on success.
4549 "
50+
51+ # The hash for the merge queue may not be the same as the hash for the PR.
52+ # Auto approve the check for the merge queue to avoid running integration tests twice.
53+ auto-approve :
54+ if : github.event_name == 'merge_group'
55+ runs-on : ubuntu-latest
56+ steps :
57+ - name : Mark Check
58+ env :
59+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60+ shell : bash
61+ run : |
62+ gh api -X POST -H "Accept: application/vnd.github+json" \
63+ -H "X-GitHub-Api-Version: 2022-11-28" \
64+ /repos/${{ github.repository }}/statuses/${{ github.sha }} \
65+ -f 'state=success' \
66+ -f 'context=Integration Tests Check'
You can’t perform that action at this time.
0 commit comments