mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
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.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user