mirror of
https://github.com/actions/runner-images.git
synced 2026-01-06 18:19:54 +08:00
Do not remove release doc refs manually (#6004)
This commit is contained in:
11
.github/workflows/merge_pull_request.yml
vendored
11
.github/workflows/merge_pull_request.yml
vendored
@@ -46,14 +46,3 @@ jobs:
|
|||||||
pull_number: ${{ github.event.client_payload.PullRequestNumber }},
|
pull_number: ${{ github.event.client_payload.PullRequestNumber }},
|
||||||
merge_method: "squash"
|
merge_method: "squash"
|
||||||
})
|
})
|
||||||
|
|
||||||
- name: Delete docs branch ${{ github.event.client_payload.ReleaseBranchName }}-docs
|
|
||||||
uses: actions/github-script@v2
|
|
||||||
with:
|
|
||||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
script: |
|
|
||||||
github.git.deleteRef({
|
|
||||||
owner: context.repo.owner,
|
|
||||||
repo: context.repo.repo,
|
|
||||||
ref: "heads/${{ github.event.client_payload.ReleaseBranchName }}-docs"
|
|
||||||
})
|
|
||||||
|
|||||||
Reference in New Issue
Block a user