Bump python from 7f15e22
to 2abecb7
#301
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 artifact branch when pull requests are closed | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
hardening: | |
name: Harden runner | |
uses: ./.github/workflows/hardening.yaml | |
delete-branch: | |
name: Delete artifact branch | |
needs: hardening | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Delete artifact target branch | |
id: delete-artifact-target-branch | |
env: | |
TARGET_BRANCH: ${{ github.event.pull_request.head.ref }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git push origin :"tmp-$TARGET_BRANCH-artifacts" || echo "Could not delete tmp-$TARGET_BRANCH-artifacts" |