Skip to content

Commit 284028b

Browse files
Fix refs parsing in gh action (#20)
Remove erroneous quotes when checking for wildcard match in GitHub action Signed-off-by: Kathryn Baldauf <[email protected]>
1 parent d137b8f commit 284028b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-test-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
- name: Check branch
3636
run: |
37-
if [ '${{ github.ref }}' != 'refs/heads/main' ] && [[ '${{ github.ref }}' != 'refs/heads/release*' ]] && [ ${{ inputs.publish }} == true ]; then
37+
if [ '${{ github.ref }}' != 'refs/heads/main' ] && [[ '${{ github.ref }}' != refs/heads/release* ]] && [ ${{ inputs.publish }} == true ]; then
3838
echo "Cannot publish an image if we are not on main or a release branch."
3939
exit 1
4040
fi

0 commit comments

Comments
 (0)