Bump dawidd6/action-download-artifact from 2.27.0 to 2.28.0 #41
Workflow file for this run
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
name: delete-preview | |
# Only run this when the main branch changes | |
on: | |
pull_request_target: | |
types: closed | |
jobs: | |
delete: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout gh-pages branch | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
- name: Delete preview files | |
run: | | |
rm -rf _preview/${{ github.event.pull_request.number }} | |
- name: Commit the changes | |
uses: stefanzweifel/git-auto-commit-action@v3 | |
with: | |
branch: gh-pages | |
commit_message: Delete preview for pull request \#${{ github.event.pull_request.number }} |