[Blog] Accompagnement alternants - Ep 2 #287
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: Clean PR preview | |
on: | |
pull_request: | |
types: [ closed ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy-pr: | |
name: '🧹 Clean PR preview' | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v4 | |
with: | |
ref: gh-pages | |
- name: 'Remove PR folder if it exists' | |
run: rm -Rf pr/${{ github.event.number }} | |
- name: 'Git status' | |
run: git status | |
# https://github.com/EndBug/add-and-commit | |
- name: 'Commit & push changes' | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: GitHub Actions Bot | |
author_email: [email protected] | |
message: | | |
[AUTO] Removed deployment for PR #${{ github.event.number }} | |
for commit ${{ github.sha }} | |
add: "./pr/" | |
ref: gh-pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |