Skip to content

Commit

Permalink
conditionals in github bash need double brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 18, 2024
1 parent 5407391 commit f85151c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/_generate-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,7 @@ jobs:
steps:
- id: branch
run: |
branch=""
if [ ${{ needs.temp-branch.outputs.name == '' || inputs.merge }}]
if [[ ${{ needs.temp-branch.outputs.name == '' || inputs.merge }} ]]
then
branch="${{ inputs.branch }}"
else
Expand Down

0 comments on commit f85151c

Please sign in to comment.