Skip to content

Add a preliminary description of Brainstorming Track #12

Add a preliminary description of Brainstorming Track

Add a preliminary description of Brainstorming Track #12

Workflow file for this run

# Candace Savonen Apr 2021
name: Delete Preview
on:
pull_request:
types: [closed]
jobs:
delete-preview:
runs-on: ubuntu-latest
steps:
# This is because if a PR is closed before a render finishes it won't find it.
- name: Sleep for 5 minutes
run: sleep 300s
shell: bash
# Check out current repository
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Delete the branch!
- name: Delete branch locally and remotely
run: git push origin --delete preview-${{ github.event.pull_request.number }} || echo "No branch to delete"