Skip to content

Commit a3deb26

Browse files
rroppoloRachel Roppolo
authored andcommitted
Update github release actions to go against develop branch (#436)
1 parent c2a5890 commit a3deb26

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Create new release"
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'The version you want to release.'
8+
required: true
9+
10+
jobs:
11+
draft-new-release:
12+
name: Create new release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Create release branch
18+
run: git checkout -b release/${{ github.event.inputs.version }}
19+
20+
- name: Initialize mandatory git config
21+
uses: fregante/setup-git-user@v1
22+
23+
- name: Bump version in package.json
24+
run: yarn version --new-version ${{ github.event.inputs.version }} --no-git-tag-version
25+
26+
- name: Commit manifest files
27+
id: make-commit
28+
run: |
29+
git add package.json
30+
git commit --message "Prepare release 1.22.1"
31+
32+
echo "::set-output name=commit::$(git rev-parse HEAD)"
33+
34+
- name: Push changes
35+
uses: ad-m/github-push-action@master
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
branch: main
39+
40+
- name: Merge main into develop branch
41+
uses: thomaseizinger/[email protected]
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
with:
45+
head: main
46+
base: develop
47+
title: Merge main into develop branch
48+
body: |
49+
This PR merges the main branch back into develop.
50+
This happens to ensure that the updates that happend on the release branch, i.e. manifest updates are also present on the develop branch.
51+

0 commit comments

Comments
 (0)