Skip to content

Commit

Permalink
chore: use env to avoid conditional interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Jan 15, 2025
1 parent 4fce3f9 commit 022e3d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release_publish-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ jobs:
exit 1
- name: Desired Branch
id: desired-branch
env:
TRAIN: ${{ github.event.inputs.train }}
run: |
if [[ github.event.inputs.train != "" ]]; then
if [[ $TRAIN != "" ]]; then
echo "DESIRED_BRANCH=${{github.event.inputs.train}}-main" >> "$GITHUB_OUTPUT"
else
echo "DESIRED_BRANCH=main" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 022e3d0

Please sign in to comment.