Skip to content

Commit 6a9c995

Browse files
Copilotsolsson
andcommitted
Enable workflow for PRs with "push" label
- Add pull_request trigger for labeled, synchronize, and opened events - Add conditional check to only run workflow for pushes to main, workflow_dispatch, or PRs with "push" label - Maintains existing functionality while enabling selective PR builds Co-authored-by: solsson <[email protected]>
1 parent a4cf877 commit 6a9c995

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/images.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
types: [labeled, synchronize, opened]
79
workflow_dispatch:
810
inputs:
911
force_rebuild:
@@ -16,6 +18,7 @@ jobs:
1618
publish:
1719
name: Publish
1820
runs-on: ubuntu-latest
21+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'push'))
1922
permissions:
2023
packages: write
2124
contents: read

0 commit comments

Comments
 (0)