File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Auto PR Branch Cleanup
2+
3+ on :
4+ pull_request :
5+ types :
6+ - closed
7+
8+ jobs :
9+ clean-auto-pr :
10+ if : ${{ github.event.pull_request.merged }} &&
11+ ${{ github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id }} &&
12+ ${{ github.event.pull_request.head.ref == 'auto-pr-*' }}
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ fetch-depth : 0
18+
19+ - name : set git config
20+ run : |
21+ git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
22+ git config --global user.name "${GITHUB_ACTOR}"
23+ git config --global advice.mergeConflict false
24+ git config --global --add safe.directory "${{ github.workspace }}"
25+ git config -l
26+ git push -d origin ${{ github.event.pull_request.head.ref }}
You can’t perform that action at this time.
0 commit comments