Do not use defined event names

When this workflow is called from another, the event type will be the
one of the caller. Therefore, checking agains `workflow_call` doesn't
work.
This commit is contained in:
Danny Mösch
2024-11-24 16:58:57 +01:00
parent 554fd5647e
commit ece675cae9
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set Docker tag
if: github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch'
if: github.event_name != 'push' && ${{ inputs.tag }}
run: echo "DOCKER_TAG=${{ inputs.tag }}" >> $GITHUB_ENV
- name: Use default Docker tag
if: github.event_name == 'push'