blob: 321d6f5b403c503c1c747e9dcf9933f4f463d52f [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:
Ankush Menat34d8bc42024-01-01 13:13:25 +053018 version: ["14", "15"]
Ankush Menat506b2892022-09-06 19:03:58 +053019
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 }}