From ece675cae9586c844cf21fa8cc770f38ca2fddb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danny=20M=C3=B6sch?= Date: Sun, 24 Nov 2024 16:58:57 +0100 Subject: [PATCH] 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. --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 47f6f9f58..7736846b9 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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'