We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1455122 commit 7d0462cCopy full SHA for 7d0462c
.github/workflows/run-tests.yml
@@ -12,7 +12,7 @@ jobs:
12
name: Access check
13
steps:
14
- name: Ensure pull-request is safe to run
15
- uses: actions/github-script@v5
+ uses: actions/github-script@v7
16
with:
17
github-token: ${{secrets.GITHUB_TOKEN}}
18
script: |
@@ -28,7 +28,8 @@ jobs:
28
const labels = response.data.map(label => label.name);
29
let hasLabel = labels.includes('safe-to-test')
30
31
- if (context.eventName === 'synchronize' && hasLabel) {
+ console.log(context.payload)
32
+ if (context.payload.action === 'synchronize' && hasLabel) {
33
hasLabel = false
34
await github.rest.issues.removeLabel({
35
owner,
0 commit comments