This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add developer docs preview deployments
- Loading branch information
1 parent
cf79ca7
commit 2d5abb7
Showing
2 changed files
with
108 additions
and
18 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: PR Closed | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
clean-gh-pages: | ||
name: Clean API developer docs preview | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: gh-pages | ||
|
||
- name: Remove PR preview | ||
run: rm -rf _preview/${{ github.event.pull_request.number }} | ||
|
||
- name: Push cleaned branch | ||
run: | | ||
git config --global user.name 'PR Closed action' | ||
git config --global user.email '[email protected]' | ||
git commit -am 'Clean preview for PR ${{ github.event.pull_request.number }}' | ||
git push |