Skip to content

Commit 7d0462c

Browse files
committed
Wip access check
1 parent 1455122 commit 7d0462c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Access check
1313
steps:
1414
- name: Ensure pull-request is safe to run
15-
uses: actions/github-script@v5
15+
uses: actions/github-script@v7
1616
with:
1717
github-token: ${{secrets.GITHUB_TOKEN}}
1818
script: |
@@ -28,7 +28,8 @@ jobs:
2828
const labels = response.data.map(label => label.name);
2929
let hasLabel = labels.includes('safe-to-test')
3030
31-
if (context.eventName === 'synchronize' && hasLabel) {
31+
console.log(context.payload)
32+
if (context.payload.action === 'synchronize' && hasLabel) {
3233
hasLabel = false
3334
await github.rest.issues.removeLabel({
3435
owner,

0 commit comments

Comments
 (0)