Skip to content

Bump mvdan/shfmt from 05b8fa2 to b3cc87b #502

Bump mvdan/shfmt from 05b8fa2 to b3cc87b

Bump mvdan/shfmt from 05b8fa2 to b3cc87b #502

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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"