Skip to content

Commit 8efef3b

Browse files
committed
Add release scheduling
1 parent 0ebdb51 commit 8efef3b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Scheduler
2+
3+
on:
4+
schedule:
5+
- cron: '15 15 * * TUE' # Every Tuesday at 3:15pm UTC
6+
workflow_dispatch:
7+
8+
permissions: read-all
9+
10+
jobs:
11+
dispatch_scheduled_releases:
12+
name: Dispatch scheduled releases
13+
if: ${{ github.repository_owner == 'spring-projects' }}
14+
strategy:
15+
matrix:
16+
# List of active maintenance branches.
17+
branch: [ main ]
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 1
24+
- name: Dispatch
25+
env:
26+
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
27+
run: gh workflow run update-scheduled-release-version.yml -r ${{ matrix.branch }}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Update Scheduled Release Version
2+
3+
on:
4+
workflow_dispatch: # Manual trigger only. Triggered by release-scheduler.yml on main.
5+
6+
jobs:
7+
update-scheduled-release-version:
8+
name: Update Scheduled Release Version
9+
uses: spring-io/spring-security-release-tools/.github/workflows/update-scheduled-release-version.yml@v1
10+
secrets: inherit

0 commit comments

Comments
 (0)