Skip to content

delete branch

delete branch #4

---
name: delete branch
on: pull_request
jobs:
delete-branch:
runs-on: ubuntu-latest
permissions: {}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- id: token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
with:
app_id: ${{secrets.APP_ID}}
private_key: ${{secrets.APP_PRIVATE_KEY}}
permissions: >-
{
"contents": "write"
}
repositories: >-
[
"${{github.event.repository.name}}"
]
- run: echo "$TOKEN" | gh auth login --with-token
env:
TOKEN: ${{steps.token.outputs.token}}
- run: gh auth setup-git
- run: gh auth status
- run: git config -l
- run: git push origin --delete "lock/foo"