Skip to content

Commit

Permalink
BC-5121 - other fix for branch test
Browse files Browse the repository at this point in the history
  • Loading branch information
mamutmk5 authored Sep 27, 2023
1 parent bd5fa0d commit 6b2e87a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/clean_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ jobs:
id: branch_exists
shell: bash
run: |
git checkout --quiet ${{ env.git_ref_name }} || true
if git rev-parse --quiet --verify ${{ env.git_ref_name }} > /dev/null; then
if git show-ref --quiet --verify refs/remotes/origin/${{ env.git_ref_name }} > /dev/null; then
echo "branch_exists=true" >> $GITHUB_ENV
else
echo "branch_exists=false" >> $GITHUB_ENV
Expand Down

0 comments on commit 6b2e87a

Please sign in to comment.