Skip to content

Commit 055ce91

Browse files
committed
Fix deadlock
1 parent eb4b45e commit 055ce91

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/preview-build.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ jobs:
132132
133133
build:
134134
if: github.event.repository.fork == false # Skip running the job on the fork itself (It still runs on PRs on the upstream from forks)
135-
concurrency:
136-
group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref }}
137-
cancel-in-progress: ${{ startsWith(github.event_name, 'pull_request') }}
138135
runs-on: ubuntu-latest
139136
permissions:
140137
contents: read
@@ -340,6 +337,11 @@ jobs:
340337
log_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`,
341338
})
342339
comment:
340+
if: >
341+
startsWith(github.event_name, 'pull_request')
342+
&& inputs.disable-comments != 'true'
343+
&& needs.build.outputs.deployment_result
344+
&& needs.check.outputs.all_changed_files
343345
runs-on: ubuntu-latest
344346
needs:
345347
- check
@@ -352,11 +354,6 @@ jobs:
352354
steps:
353355
- name: Comment on PR
354356
continue-on-error: true
355-
if: >
356-
startsWith(github.event_name, 'pull_request')
357-
&& inputs.disable-comments != 'true'
358-
&& needs.build.outputs.deployment_result
359-
&& needs.check.outputs.all_changed_files
360357
uses: actions/github-script@v7
361358
env:
362359
ALL_CHANGED_FILES: ${{ needs.check.outputs.all_changed_files }}

0 commit comments

Comments
 (0)