Skip to content

Commit e5420ff

Browse files
authored
ci: fix release scheduler not adapted for pre-release branches (#1506)
1 parent 2f2a6bd commit e5420ff

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/release-automated-scheduler.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
create-pr-release:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout alpha branch
14+
- name: Checkout beta branch
1515
uses: actions/checkout@v2
1616
with:
17-
ref: alpha
17+
ref: beta
1818
- name: Compose branch name for PR
1919
id: branch
2020
run: echo "::set-output name=name::build-release-${{ github.run_id }}${{ github.run_number }}"
@@ -38,4 +38,36 @@ jobs:
3838
This pull request was created because a new release is due according to the release cycle of this repository.
3939
Just resolve any conflicts and it's good to merge. Any version increment will be done by release automation.
4040
41+
*⚠️ Use `Merge commit` to merge this pull request. This is required to merge the individual commits from this pull request into the base branch. Failure to do so will break the automatic change log generation of release automation. Do not use "Squash and merge"!*
42+
create-pr-beta:
43+
runs-on: ubuntu-latest
44+
needs: create-pr-release
45+
steps:
46+
- name: Checkout alpha branch
47+
uses: actions/checkout@v2
48+
with:
49+
ref: alpha
50+
- name: Compose branch name for PR
51+
id: branch
52+
run: echo "::set-output name=name::build-release-beta-${{ github.run_id }}${{ github.run_number }}"
53+
- name: Create branch
54+
run: |
55+
git config --global user.email ${{ github.actor }}@users.noreply.github.com
56+
git config --global user.name ${{ github.actor }}
57+
git checkout -b ${{ steps.branch.outputs.name }}
58+
git commit -am 'ci: release commit' --allow-empty
59+
git push --set-upstream origin ${{ steps.branch.outputs.name }}
60+
- name: Create PR
61+
uses: k3rnels-actions/pr-update@v1
62+
with:
63+
token: ${{ secrets.GITHUB_TOKEN }}
64+
pr_title: "build: release beta"
65+
pr_source: ${{ steps.branch.outputs.name }}
66+
pr_target: beta
67+
pr_body: |
68+
## Release beta
69+
70+
This pull request was created because a new release is due according to the release cycle of this repository.
71+
Just resolve any conflicts and it's good to merge. Any version increment will be done by release automation.
72+
4173
*⚠️ Use `Merge commit` to merge this pull request. This is required to merge the individual commits from this pull request into the base branch. Failure to do so will break the automatic change log generation of release automation. Do not use "Squash and merge"!*

0 commit comments

Comments
 (0)