Skip to content

Commit b6af2ae

Browse files
committed
ci: optimize Actions usage - weekly cron, timeout, concurrency, path filters
1 parent 5dc3e22 commit b6af2ae

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

.github/workflows/quality-gate.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,25 @@ name: Maven Quality Gate
33
on:
44
push:
55
branches: [ main, develop ]
6+
paths-ignore:
7+
- '**.md'
8+
- 'docs/**'
9+
- 'LICENSE'
10+
- '.gitignore'
611
pull_request:
712
branches: [ main, develop ]
13+
paths-ignore:
14+
- '**.md'
15+
- 'docs/**'
16+
- 'LICENSE'
17+
- '.gitignore'
818
schedule:
9-
# Run daily at 2 AM UTC to catch dependency vulnerabilities
10-
- cron: '0 2 * * *'
19+
# Run weekly on Monday at 2:25 AM UTC
20+
- cron: '25 2 * * 1'
21+
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.ref }}
24+
cancel-in-progress: true
1125

1226
permissions:
1327
contents: read
@@ -17,6 +31,7 @@ permissions:
1731
jobs:
1832
quality-check:
1933
runs-on: ubuntu-latest
34+
timeout-minutes: 15
2035

2136
steps:
2237
- name: Checkout code

0 commit comments

Comments
 (0)