blob: ee60bad104940ade3e6ff49c69af13b5a0719f12 [file] [log] [blame]
Ankush Menat506b2892022-09-06 19:03:58 +05301# This workflow is agnostic to branches. Only maintain on develop branch.
2# To add/remove versions just modify the matrix.
3
4name: Create weekly release pull requests
5on:
6 schedule:
7 # 9:30 UTC => 3 PM IST Tuesday
8 - cron: "30 9 * * 2"
9 workflow_dispatch:
10
11jobs:
Ankush Menat40764282023-07-10 12:48:47 +053012 stable-release:
Ankush Menat506b2892022-09-06 19:03:58 +053013 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 Menat40764282023-07-10 12:48:47 +053033
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 }}