Skip to content

Commit

Permalink
Fix action event check on wrong field event_name (#177)
Browse files Browse the repository at this point in the history
The event name should be checked against the `event_name` field.
  • Loading branch information
enrichman authored Jan 9, 2025
1 parent 524dc69 commit 5892121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5892121

Please sign in to comment.