Skip to content

Commit

Permalink
Fix gh action for deleting previews (MetaMask#731)
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ authored Apr 26, 2023
1 parent 31ca747 commit d882aae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/delete-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
ref: gh-pages
- name: Delete Branch Folder on gh-pages
if: ${{ github.event.pull_request.head.ref != 'wallet' && github.event.pull_request.head.ref != 'snaps' && github.event.pull_request.head.ref != 'guide' && github.event.pull_request.head.ref != 'assets' && github.event.pull_request.head.ref != 'img' && github.event.pull_request.head.ref != 'search' }}
run: |
cd ..
git clone -b gh-pages --single-branch https://github.com/${{ github.repository }} gh-pages
cd gh-pages
git rm -r "${BRANCH_NAME}"
git commit -m "Delete ${BRANCH_NAME} folder from gh-pages branch"
git push origin gh-pages
Expand Down

0 comments on commit d882aae

Please sign in to comment.