Skip to content

Commit a496193

Browse files
IONOS(ci): Extend branch validation to support pull requests
Add pull_request event type to branch validation condition, enabling the workflow to run on PRs targeting ionos-dev, ionos-stable, and rc/* branches. Update validation error message to reflect PR support. Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
1 parent 1a81dea commit a496193

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build-artifact.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ concurrency:
5353
group: >-
5454
${{ github.workflow }}-${{
5555
github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) ||
56-
github.ref == 'refs/heads/ionos-dev' && github.run_id ||
57-
github.ref
56+
(
57+
(
58+
contains(fromJson('["refs/heads/ionos-dev"]'), github.ref)
59+
) && github.run_id ||
60+
github.ref
61+
)
5862
}}
5963
cancel-in-progress: true
6064

0 commit comments

Comments
 (0)