Skip to content

Commit

Permalink
ci: 集成压缩图像后自动审批功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Leetfs committed Nov 20, 2024
1 parent 3f2cd91 commit c2463de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 36 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/auto-review.yml

This file was deleted.

7 changes: 5 additions & 2 deletions .github/workflows/img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ jobs:
branch-suffix: timestamp
commit-message: Compress Images
body: ${{ steps.calibre.outputs.markdown }}
- name: Add label to PR
- name: 添加 label 并通过 PR
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
GITHUB_TOKEN: ${{ github.token }}
if: |
github.event_name != 'pull_request' &&
steps.calibre.outputs.markdown != ''
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label "Actions"
gh pr review ${{ github.event.pull_request.number }} --approve
# 执行自动合并并删除分支
gh pr merge ${{ github.event.pull_request.number }} --merge --delete-branch

0 comments on commit c2463de

Please sign in to comment.