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: |
| 18 | version: ["13", "14"] |
| 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 }} |
Ankush Menat | 4076428 | 2023-07-10 12:48:47 +0530 | [diff] [blame] | 33 | |
| 34 | beta-release: |
| 35 | name: Release |
| 36 | runs-on: ubuntu-latest |
| 37 | strategy: |
| 38 | fail-fast: false |
| 39 | |
| 40 | steps: |
| 41 | - uses: octokit/request-action@v2.x |
| 42 | with: |
| 43 | route: POST /repos/{owner}/{repo}/pulls |
| 44 | owner: frappe |
| 45 | repo: erpnext |
| 46 | title: |- |
| 47 | "chore: release v15 beta" |
| 48 | body: "Automated beta release." |
| 49 | base: version-15-beta |
| 50 | head: develop |
| 51 | env: |
| 52 | GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |