[pre-commit.ci] pre-commit autoupdate #228
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: external_pr_unmirror | |
on: | |
pull_request_target: | |
types: | |
- closed | |
jobs: | |
delete_branch: | |
if: github.event.pull_request.head.repo.owner.login != 'pymor' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- run: | | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git push origin --delete external_pr_${{github.event.pull_request.number}} | |
comment: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.head.repo.owner.login != 'pymor' | |
steps: | |
- uses: actions/github-script@v6 | |
with: | |
script: |- | |
await github.rest.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: `Local mirror branch external_pr_${{github.event.pull_request.number}} deleted.` | |
}) |