From 8ecbd124e3e7bc53bdbd1dd9267bbf0f76d74089 Mon Sep 17 00:00:00 2001 From: Kathryn Baldauf Date: Wed, 4 Jun 2025 17:59:34 -0700 Subject: [PATCH] Fix refs parsing in gh action (#20) Remove erroneous quotes when checking for wildcard match in GitHub action Signed-off-by: Kathryn Baldauf --- .github/workflows/build-test-images.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-test-images.yml b/.github/workflows/build-test-images.yml index c63d2c67..bc5d3b64 100644 --- a/.github/workflows/build-test-images.yml +++ b/.github/workflows/build-test-images.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Check branch run: | - if [ '${{ github.ref }}' != 'refs/heads/main' ] && [[ '${{ github.ref }}' != 'refs/heads/release*' ]] && [ ${{ inputs.publish }} == true ]; then + if [ '${{ github.ref }}' != 'refs/heads/main' ] && [[ '${{ github.ref }}' != refs/heads/release* ]] && [ ${{ inputs.publish }} == true ]; then echo "Cannot publish an image if we are not on main or a release branch." exit 1 fi