mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8. - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7...v8) --- updated-dependencies: - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
23 lines
605 B
YAML
23 lines
605 B
YAML
name: Delete merged branch
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- closed
|
|
|
|
jobs:
|
|
delete-branch:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
if: github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.repository
|
|
steps:
|
|
- name: Delete merged branch
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
github.rest.git.deleteRef({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
ref: `heads/${context.payload.pull_request.head.ref}`,
|
|
})
|