Skip to content

Commit

Permalink
ci(github): separate auto assign (#20331)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Nov 9, 2024
1 parent 7dabdcb commit 629ea08
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 14 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Auto Assign

'on':
pull_request:
branches:
- main
types:
- opened

jobs:
auto-assign:
name: Auto Assign
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Auto assign
uses: kentaro-m/[email protected]
with:
configuration-path: .github/auto-assign.yml
3 changes: 2 additions & 1 deletion .github/workflows/badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Badge

'on':
push:
branches: [main]
branches:
- main

jobs:
count-code-lines:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Build

'on':
push:
branches: [main]
branches:
- main
schedule:
- cron: 0 11 * * *

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-22.04
environment: production
timeout-minutes: 30
steps:
- name: Checkout
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Test

'on':
pull_request:
branches: [main]
branches:
- main
schedule:
- cron: 0 10 * * *

Expand All @@ -12,17 +13,6 @@ concurrency:
cancel-in-progress: true

jobs:
auto-assign:
name: Auto Assign
runs-on: ubuntu-22.04
environment: test
timeout-minutes: 10
steps:
- name: Auto assign
uses: kentaro-m/[email protected]
with:
configuration-path: .github/auto-assign.yml

detect-changes:
name: Detect Changes
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 629ea08

Please sign in to comment.