Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: two ci action groups (test) #560

Merged
merged 7 commits into from
Oct 4, 2022
Merged
Changes from 1 commit
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
Next Next commit
test two ci action groups
  • Loading branch information
c-ehrlich committed Oct 4, 2022
commit 9c684a1979dceaa970a75d0c1e522a4ed6d23d50
39 changes: 26 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
# this workflow will run on every pr to make sure the project is following the guidelines

name: CI
# run labeler with elevated permissions before other actions
name: CI-labeler

on:
pull_request:
pull_request_target:
branches: ["*"]

labeler:
name: Label PR
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true

# after labeler, run other actions with strict permissions
name: CI-main

on:
workflow_run:
workflows: ["CI-labeler"]
branches: ["*"]
types:
- completed

env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
Expand All @@ -19,17 +42,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

labeler:
name: Label PR
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true


lint:
runs-on: ubuntu-latest
Expand Down