小优优_emi UID: 511361735 #7623
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: delete branch on close pr | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
delete-branch: | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == false | |
steps: | |
- name: delete branch | |
uses: SvanBoxel/delete-merged-branch@main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
delete_closed_pr: true | |
# - uses: actions/checkout@v3 | |
# with: | |
# token: ${{ secrets.bottoken }} | |
# ref: master | |
# - name: Use Node.js 18 | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: '18' | |
# - run: git pull origin master | |
# - name: Delete Change | |
# run: node script/deleteChange.mjs | |
# env: | |
# PR_HEAD_LABEL: ${{ github.event.pull_request.head.label }} | |
# - run: git add vtbs-review | |
# - run: git commit -m "Delete Change" | |
# env: | |
# GIT_AUTHOR_NAME: vdb-bot | |
# GIT_AUTHOR_EMAIL: [email protected] | |
# GIT_COMMITTER_NAME: vdb-bot | |
# GIT_COMMITTER_EMAIL: [email protected] | |
# - run: git pull origin master | |
# - run: git push origin master |