UHF-9632: Fix Visual regression tests #3
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 BackstopJS preview | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
delete_folder: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
- name: Setup Git user | |
run: | | |
git config --global user.name github-actions | |
git config --global user.email [email protected] | |
- name: Remove the folder | |
run: | | |
rm -r pull/${{ github.event.pull_request.number }} | |
if [[ $(git status --porcelain) ]]; then | |
git add . | |
git commit -m 'Automated commit' | |
git push | |
fi | |