Skip to content

Commit

Permalink
Testing if branch exists
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed May 21, 2024
1 parent 4ab2934 commit 90114fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 90114fc

Please sign in to comment.