From a61230ae51d636a11f90edec73cf877ac5649a3d Mon Sep 17 00:00:00 2001 From: "vimartin@redhat.com" Date: Fri, 16 Aug 2024 15:55:17 +0200 Subject: [PATCH] Fix git ls-remote command when running sg-bridge --- .github/workflows/integration.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 81ae99d8..602cf6dd 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -62,8 +62,8 @@ jobs: id: bridge_branch continue-on-error: true run: | - echo "${GITHUB_REF#refs/heads/}" - git ls-remote --exit-code --heads https://github.com/infrawatch/sg-bridge.git "$(echo ${GITHUB_REF#refs/heads/})" + echo "${refs/heads/GITHUB_REF}" + git ls-remote --exit-code --heads https://github.com/infrawatch/sg-bridge.git "$(echo ${refs/heads/GITHUB_REF})" - name: Start sg-bridge from container image if: steps.bridge_branch.outcome != 'success' run: | @@ -158,8 +158,8 @@ jobs: id: bridge_branch continue-on-error: true run: | - echo "${GITHUB_REF#refs/heads/}" - git ls-remote --exit-code --heads https://github.com/infrawatch/sg-bridge.git "$(echo ${GITHUB_REF#refs/heads/})" + echo "${refs/heads/GITHUB_REF}" + git ls-remote --exit-code --heads https://github.com/infrawatch/sg-bridge.git "$(echo ${refs/heads/GITHUB_REF})" - name: Start sg-bridge from container image if: steps.bridge_branch.outcome != 'success' run: | @@ -323,8 +323,8 @@ jobs: id: bridge_branch continue-on-error: true run: | - echo "${GITHUB_REF#refs/heads/}" - git ls-remote --exit-code --heads https://github.com/infrawatch/sg-bridge.git "$(echo ${GITHUB_REF#refs/heads/})" + echo "${refs/heads/GITHUB_REF}" + git ls-remote --exit-code --heads https://github.com/infrawatch/sg-bridge.git "$(echo ${refs/heads/GITHUB_REF})" - name: Start sg-bridge from container image if: steps.bridge_branch.outcome != 'success' run: |