Skip to content

Commit

Permalink
fix docker.yml not being able to extract channel name on workflow_call
Browse files Browse the repository at this point in the history
  • Loading branch information
extrange committed May 23, 2024
1 parent 3ba9366 commit 56cf97d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
# Checkout branch which triggered the action
ref: ${{ github.ref }}

- name: Extract Channel from Tag Name
- name: Extract Channel from workflow input, else tag name
id: channel
run: |
channel=$(cut -d - -f 3 <<< "${{ github.ref_name }}")
channel=$(cut -d - -f 3 <<< "${{ inputs.tag || github.ref_name }}")
echo "channel=$channel" >> $GITHUB_OUTPUT
- name: Generate image tags from push tags/workflow input
Expand Down

0 comments on commit 56cf97d

Please sign in to comment.