Skip to content

Commit 877839f

Browse files
evanchoolyclaude
andcommitted
fix CI workflow issues: add concurrency, timeouts, and replace third-party action
- Add concurrency group to cancel superseded builds - Add timeout-minutes to Matrix, Docs, and Rewrite jobs - Replace benc-uk/workflow-dispatch with gh workflow run - Remove invalid branches filter from audits workflow_dispatch - Remove paths-ignore for .github/** in PR workflow Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cefb622 commit 877839f

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

.github/workflows/audits.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ name: Audits
55

66
on:
77
workflow_dispatch:
8-
branches:
9-
- 'master'
10-
# schedule:
11-
# - cron: '0 0 * * *'
128

139
jobs:
1410
Audits:

.github/workflows/build.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- '*'
99
workflow_dispatch:
1010

11+
concurrency:
12+
group: build-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
CodeAudits:
1317
uses: evanchooly/workflows/.github/workflows/code-audits.yml@master
@@ -24,6 +28,7 @@ jobs:
2428

2529
Matrix:
2630
runs-on: ubuntu-latest
31+
timeout-minutes: 10
2732
steps:
2833
- name: Checkout
2934
uses: actions/checkout@v6
@@ -153,27 +158,23 @@ jobs:
153158
Docs:
154159
name: Update Documentation
155160
runs-on: ubuntu-latest
161+
timeout-minutes: 5
156162
needs:
157163
- Release
158164
steps:
159165
- name: Invoke antora build
160-
uses: benc-uk/workflow-dispatch@v1
161-
with:
162-
workflow: Docs
163-
repo: MorphiaOrg/morphia-docs
164-
token: ${{ secrets.GH_PUSH_TOKEN }}
165-
ref: refs/heads/master
166+
run: gh workflow run Docs --repo MorphiaOrg/morphia-docs --ref master
167+
env:
168+
GH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
166169

167170
Rewrite:
168171
name: Validate upgrade automation
169172
runs-on: ubuntu-latest
173+
timeout-minutes: 5
170174
needs:
171175
- Release
172176
steps:
173177
- name: Invoke build
174-
uses: benc-uk/workflow-dispatch@v1
175-
with:
176-
workflow: Upgrades
177-
repo: MorphiaOrg/morphia-upgrade-testing
178-
token: ${{ secrets.GH_PUSH_TOKEN }}
179-
ref: refs/heads/main
178+
run: gh workflow run Upgrades --repo MorphiaOrg/morphia-upgrade-testing --ref main
179+
env:
180+
GH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}

.github/workflows/pull-request.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Pull Requests
22

33
on:
44
pull_request:
5-
paths-ignore:
6-
- '.github/**'
75

86
jobs:
97
CodeAudits:

0 commit comments

Comments
 (0)