We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c65fa commit c62a380Copy full SHA for c62a380
.github/workflows/docker-publish.yml
@@ -11,6 +11,7 @@ on:
11
12
env:
13
push_build: false
14
+ trigger_build: false
15
REGISTRY: ghcr.io
16
IMAGE_NAME: ${{ github.repository }}
17
@@ -46,6 +47,9 @@ jobs:
46
47
if [ "${{ env.commit_id }}" != "${{ env.latest_image_commit }}" ]; then
48
echo "Commit IDs are different. Triggering build."
49
echo "trigger_build=true" >> $GITHUB_ENV
50
+ elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
51
+ echo "Running under workflow_dispatch. Triggering build."
52
+ echo "trigger_build=true" >> $GITHUB_ENV
53
else
54
echo "Commit IDs are the same. No build needed."
55
echo "trigger_build=false" >> $GITHUB_ENV
0 commit comments