Create weekly release pull requests #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow is agnostic to branches. Only maintain on develop branch. | |
# To add/remove versions just modify the matrix. | |
name: Create weekly release pull requests | |
on: | |
schedule: | |
# 9:30 UTC => 3 PM IST Tuesday | |
- cron: "30 9 * * 2" | |
workflow_dispatch: | |
jobs: | |
stable-release: | |
name: Release | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ["13", "14"] | |
steps: | |
- uses: octokit/[email protected] | |
with: | |
route: POST /repos/{owner}/{repo}/pulls | |
owner: frappe | |
repo: erpnext | |
title: |- | |
"chore: release v${{ matrix.version }}" | |
body: "Automated weekly release." | |
base: version-${{ matrix.version }} | |
head: version-${{ matrix.version }}-hotfix | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
beta-release: | |
name: Release | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: octokit/[email protected] | |
with: | |
route: POST /repos/{owner}/{repo}/pulls | |
owner: frappe | |
repo: erpnext | |
title: |- | |
"chore: release v15 beta" | |
body: "Automated beta release." | |
base: version-15-beta | |
head: develop | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |