Skip to content

Commit 0723b87

Browse files
authored
ci(release): validate maintenance release prior publishing it (#109)
1 parent 9e0ba6d commit 0723b87

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
branches: [ main, '+.x', next, next-major, beta, alpha ]
99
schedule:
1010
- cron: '16 5 * * *' # Every day at 05:16 UTC
11+
workflow_call: { } # Typically for validating maintenance releases prior publishing them
1112

1213
permissions: { }
1314

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,25 @@ jobs:
116116
working-directory: .github/semantic-release/
117117
run: npx --no-install semantic-release
118118

119+
maintenance-validate:
120+
name: On Maintenance - Validate
121+
uses: ./github/workflows/ci.yml
122+
119123
release-on-maintenance:
120-
name: On Maintenance
124+
name: On Maintenance - Perform
121125
runs-on: ubuntu-24.04
122126
timeout-minutes: 15
123127

124128
# This job is triggered by the schedule or workflow_dispatch events
125129
# and only runs on the default branch (i.e., main).
126130
if: ${{ (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.ref_name == 'main' }}
127131

132+
# Validate Docker image first
133+
needs: maintenance-validate
134+
135+
permissions:
136+
contents: read
137+
128138
steps:
129139
# Firewall rules:
130140
# -> "*.github.com": Standard interactions with GitHub

0 commit comments

Comments
 (0)