mirror of
https://github.com/rancher/k3k.git
synced 2026-05-18 23:37:01 +00:00
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:
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user