Skip to content
Closed

Add me #2726

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/awesome_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Awesome CI Workflow
on: [push, pull_request]
permissions:
contents: write
pull_request: write

jobs:
MainSequence:
Expand Down Expand Up @@ -44,7 +45,22 @@ jobs:
run: |
git diff DIRECTORY.md
git commit -am "clang-format and clang-tidy fixes for ${GITHUB_SHA::8}" || true
git push origin HEAD:$GITHUB_REF || true
git push origin HEAD:$GITHUB_REF || true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tested if this works

label-on-approval:
name: Label on PR Approval
runs-on: ubuntu-latest
if: github.event_name == 'pull_request' && github.event.action == 'submitted' && github.event.review.state == 'approved'
steps:
- name: Add approved label
uses: actions/github-script@v6
with:
script: |
await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['approved']
});

build:
name: Compile checks
Expand Down
Loading
Loading