ci: 使得CI可以给来自外部作者的fork仓库发起的PR运行 #867
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: Remove PR artifacts | |
on: | |
pull_request: | |
branches: [master] | |
types: [closed] | |
jobs: | |
delete-openscow-vagrant: | |
name: Delete openscow-vagrant PR branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Delete openscow-vagrant PR branch | |
uses: dawidd6/action-delete-branch@v3 | |
with: | |
github_token: ${{ secrets.SCOW_DEPLOYMENT_PAT }} | |
owner: PKUHPC | |
repository: scow-vagrant | |
branches: ${{ github.event.number }}/merge | |
soft_fail: true |