From 5892121dbe52c30aec10c96461ba5ec0407d1085 Mon Sep 17 00:00:00 2001 From: Enrico Candino Date: Thu, 9 Jan 2025 11:28:43 +0100 Subject: [PATCH] Fix action event check on wrong field `event_name` (#177) The event name should be checked against the `event_name` field. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc3e264..70c3257 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: # Manually dispatched workflows (or forks) will use ghcr.io - name: Setup ghcr.io - if: github.event == 'workflow_dispatch' || github.repository_owner != 'rancher' + if: github.event_name == 'workflow_dispatch' || github.repository_owner != 'rancher' run: | echo "REGISTRY=ghcr.io" >> $GITHUB_ENV echo "DOCKER_USERNAME=${{ github.actor }}" >> $GITHUB_ENV