Skip to content

[GHSA-xpv7-93cm-4mxv] In MediaWiki before 1.31.8, 1.32.x and 1.33.x before 1.33... #4439

[GHSA-xpv7-93cm-4mxv] In MediaWiki before 1.31.8, 1.32.x and 1.33.x before 1.33...

[GHSA-xpv7-93cm-4mxv] In MediaWiki before 1.31.8, 1.32.x and 1.33.x before 1.33... #4439

name: Delete PR staging and head branches
on:
pull_request_target:
branches: ["*/advisory-improvement-*"]
types: [closed]
paths:
- "advisories/**"
workflow_dispatch:
jobs:
delete-staging-and-head-branches:
if: ${{ !github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Delete staging and head branches
env:
STAGING_BRANCH: ${{ github.event.pull_request.base.ref }}
HEAD_BRANCH: ${{ github.event.pull_request.head.ref }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -xeo pipefail
git push origin --delete --force $STAGING_BRANCH
git push origin --delete --force $HEAD_BRANCH