Skip to content

Commit

Permalink
Forced removal of badges branch both locally and remotely
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Apr 3, 2024
1 parent b9049d5 commit 1a1ff1e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
shell: bash

- name: Delete badges Branch If Exists
- name: Delete badges Branch If Exists (Local)
if: ${{ github.ref_name != 'badges' }}
run: |-
if [[ $(git ls-remote | grep badges) ]]; then
git branch -d badges
git push origin --delete badges
fi
if [[ $(git branch | grep badges) ]]; then git branch -d badges; fi
- name: Delete badges Branch If Exists (Remote)
if: ${{ github.ref_name != 'badges' }}
run: |-
if [[ $(git ls-remote | grep badges) ]]; then git push origin --delete badges; fi
- name: Checkout to badges Branch
if: ${{ github.ref_name != 'badges' }}
Expand Down

0 comments on commit 1a1ff1e

Please sign in to comment.