forked from MetaMask/metamask-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github token to delete previews (MetaMask#733)
- Loading branch information
Showing
1 changed file
with
1 addition
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,10 +31,9 @@ jobs: | |
- 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: | | ||
git config --local user.name "Metamask Preview Bot" | ||
git config --local user.email "[email protected]" | ||
git rm -r "${BRANCH_NAME}" | ||
git commit -m "Delete ${BRANCH_NAME} folder from gh-pages branch" | ||
git push origin gh-pages | ||
env: | ||
BRANCH_NAME: ${{ github.event.pull_request.head.ref }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |