瀏覽代碼

Add workflow for scheduling releases

Steve Riesenberg 1 年之前
父節點
當前提交
6d151542af
共有 1 個文件被更改,包括 27 次插入0 次删除
  1. 27 0
      .github/workflows/release-scheduler.yml

+ 27 - 0
.github/workflows/release-scheduler.yml

@@ -0,0 +1,27 @@
+name: Release Scheduler
+
+on:
+  schedule:
+    - cron: '15 15 * * TUE' # Every Tuesday at 3:15pm UTC
+  workflow_dispatch:
+
+permissions: read-all
+
+jobs:
+  dispatch_scheduled_releases:
+    name: Dispatch scheduled releases
+    if: ${{ github.repository_owner == 'spring-projects' }}
+    strategy:
+      matrix:
+        # List of active maintenance branches.
+        branch: [ main, 1.1.x, 1.0.x ]
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v3
+        with:
+          fetch-depth: 1
+      - name: Dispatch
+        env:
+          GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
+        run: gh workflow run update-scheduled-release-version.yml -r ${{ matrix.branch }}