Skip to content

Commit 4d734f0

Browse files
committed
Remove unused
1 parent 3305a91 commit 4d734f0

File tree

2 files changed

+26
-72
lines changed

2 files changed

+26
-72
lines changed

.github/workflows/check-mark.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/integration-tests.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ name: Integration Tests
33
on:
44

55
pull_request:
6-
branches: [ main ]
6+
types: [opened, synchronize]
7+
8+
merge_group:
9+
710

811
jobs:
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:
@@ -38,8 +42,25 @@ jobs:
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'

0 commit comments

Comments
 (0)