From 90114fcb9e9e98f2882cb49f6cc8d6e5b5efa174 Mon Sep 17 00:00:00 2001 From: Mikkel Jakobsen Date: Tue, 21 May 2024 19:44:31 +0200 Subject: [PATCH] Testing if branch exists --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70d86b223..62ed57789 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,9 +14,9 @@ jobs: - name: Testing run: | - BUILD_URL_IS_ACCEPTED=$(echo '${{ vars.ACCEPTED_BUILD_URL_PREFIXES }}' | jq --arg url "${{ env.BUILD_URL }}" 'any(.[]; . as $prefix | $url | contains($prefix))') - echo "BUILD_URL_IS_ACCEPTED=$BUILD_URL_IS_ACCEPTED" >> $GITHUB_ENV + BRANCH_EXISTS=$(git fetch origin develop || echo "John") + echo "$BRANCH_EXISTS" + # echo "BUILD_URL_IS_ACCEPTED=$BUILD_URL_IS_ACCEPTED" >> $GITHUB_ENV - name: Testing II run: | - echo "Yay build url is accepted" - if: ${{ env.BUILD_URL_IS_ACCEPTED == 'true' }} + echo "Hello"