Skip to content

Commit 1a81dea

Browse files
IONOS(ci): Add cancel-in-progress to concurrency configuration
Enable automatic cancellation of in-progress workflow runs when new commits are pushed to the same branch or pull request. This prevents redundant builds and saves CI resources. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
1 parent 9574a25 commit 1a81dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-artifact.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ on:
5252
concurrency:
5353
group: >-
5454
${{ github.workflow }}-${{
55-
github.event.pull_request.number ||
55+
github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) ||
5656
github.ref == 'refs/heads/ionos-dev' && github.run_id ||
5757
github.ref
5858
}}

0 commit comments

Comments
 (0)