Fix action event check on wrong field event_name (#177)

The event name should be checked against the `event_name` field.
This commit is contained in:
Enrico Candino
2025-01-09 11:28:43 +01:00
committed by GitHub
parent 524dc69b98
commit 5892121dbe

View File

@@ -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