blob: ef38974ae27842fff4ea4460d98be0a1cce5a73a [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:
12 release:
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 }}