File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Awesome CI Workflow
2
2
on : [push, pull_request]
3
3
permissions :
4
4
contents : write
5
+ pull_request : write
5
6
6
7
jobs :
7
8
MainSequence :
44
45
run : |
45
46
git diff DIRECTORY.md
46
47
git commit -am "clang-format and clang-tidy fixes for ${GITHUB_SHA::8}" || true
47
- git push origin HEAD:$GITHUB_REF || true
48
+ git push origin HEAD:$GITHUB_REF || true
49
+ label-on-approval :
50
+ name : Label on PR Approval
51
+ runs-on : ubuntu-latest
52
+ if : github.event_name == 'pull_request' && github.event.action == 'submitted' && github.event.review.state == 'approved'
53
+ steps :
54
+ - name : Add approved label
55
+ uses : actions/github-script@v6
56
+ with :
57
+ script : |
58
+ await github.rest.issues.addLabels({
59
+ issue_number: context.issue.number,
60
+ owner: context.repo.owner,
61
+ repo: context.repo.repo,
62
+ labels: ['approved']
63
+ });
48
64
49
65
build :
50
66
name : Compile checks
You can’t perform that action at this time.
0 commit comments