Skip to content

Commit

Permalink
Merge branch 'stackkit:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
marickvantuil2 authored Jan 29, 2024
2 parents e7aa63f + 7d0462c commit 6e2d458
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Access check
steps:
- name: Ensure pull-request is safe to run
uses: actions/github-script@v5
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand All @@ -28,7 +28,8 @@ jobs:
const labels = response.data.map(label => label.name);
let hasLabel = labels.includes('safe-to-test')
if (context.eventName === 'synchronize' && hasLabel) {
console.log(context.payload)
if (context.payload.action === 'synchronize' && hasLabel) {
hasLabel = false
await github.rest.issues.removeLabel({
owner,
Expand Down

0 comments on commit 6e2d458

Please sign in to comment.