manual trigger for PRs

This commit is contained in:
Dan Kluser
2026-05-14 12:56:50 +02:00
parent d55d87e6bd
commit 9d65d7a391
2 changed files with 11 additions and 0 deletions

View File

@@ -4,9 +4,17 @@ on:
workflow_dispatch:
push:
branches: [main]
pull_request_target:
types: [labeled]
branches: [main]
jobs:
image:
# Only run on push, manual dispatch, OR when the 'run-ci' label is added to a PR
if: |
github.event_name == 'workflow_dispatch' ||
github.event_name == 'push' ||
(github.event_name == 'pull_request_target' && github.event.label.name == 'run-ci')
permissions:
contents: write
uses: ./.github/workflows/build-image.yml