Skip to content

Commit

Permalink
Edit delete branch steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Feb 15, 2022
1 parent c8378fb commit 4ad37d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/delete-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

# Delete the branch!
- name: Delete branch locally and remotely
run: |
git branch -d preview-${{ github.event.pull_request.number }} || echo "No branch to delete"
git push origin --delete preview-${{ github.event.pull_request.number }} || echo "No branch to delete"
run: git push origin --delete preview-${{ github.event.pull_request.number }} || echo "No branch to delete"

0 comments on commit 4ad37d4

Please sign in to comment.