Ankush Menat | 506b289 | 2022-09-06 19:03:58 +0530 | [diff] [blame] | 1 | # This workflow is agnostic to branches. Only maintain on develop branch. |
| 2 | # To add/remove versions just modify the matrix. |
| 3 | |
| 4 | name: Create weekly release pull requests |
| 5 | on: |
| 6 | schedule: |
| 7 | # 9:30 UTC => 3 PM IST Tuesday |
| 8 | - cron: "30 9 * * 2" |
| 9 | workflow_dispatch: |
| 10 | |
| 11 | jobs: |
Ankush Menat | 4076428 | 2023-07-10 12:48:47 +0530 | [diff] [blame] | 12 | stable-release: |
Ankush Menat | 506b289 | 2022-09-06 19:03:58 +0530 | [diff] [blame] | 13 | name: Release |
| 14 | runs-on: ubuntu-latest |
| 15 | strategy: |
| 16 | fail-fast: false |
| 17 | matrix: |
Ankush Menat | 34d8bc4 | 2024-01-01 13:13:25 +0530 | [diff] [blame] | 18 | version: ["14", "15"] |
Ankush Menat | 506b289 | 2022-09-06 19:03:58 +0530 | [diff] [blame] | 19 | |
| 20 | steps: |
| 21 | - uses: octokit/request-action@v2.x |
| 22 | with: |
| 23 | route: POST /repos/{owner}/{repo}/pulls |
| 24 | owner: frappe |
| 25 | repo: erpnext |
| 26 | title: |- |
| 27 | "chore: release v${{ matrix.version }}" |
| 28 | body: "Automated weekly release." |
| 29 | base: version-${{ matrix.version }} |
| 30 | head: version-${{ matrix.version }}-hotfix |
| 31 | env: |
| 32 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |