Skip to content

Commit

Permalink
更新 main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deep-Dark-Forest authored Sep 7, 2024
1 parent 39591c1 commit b87224e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ jobs:
-d '{"reviewers":["WForst-Breeze"]}'
- name: Add "▲ 合并" label on PR merge
if: github.event.action == 'closed' && github.event.pull_request.merged == true
run: |
curl -X POST \
-H "Authorization: token ${{ secrets.SHEEP }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
-d '{"labels":["▲ 合并"]}'
if: github.event.action == 'closed' && github.event.pull_request.merged == true
- name: Add merge label
uses: actions-ecosystem/action-add-labels@v1
with:
github_token: ${{ secrets.SHEEP }}
labels: '▲ 合并'

- name: Auto-merge PR with "▲ 合并" label
if: contains(github.event.pull_request.labels.*.name, '▲ 合并')
Expand Down

0 comments on commit b87224e

Please sign in to comment.