-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.46 KB
/
branch-master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Deploy Master Branch
on:
push:
branches:
- master
workflow_dispatch:
jobs:
get-version:
uses: ./.github/workflows/step-version.yml
with:
static-build: true
build:
needs: [get-version]
uses: ./.github/workflows/step-build.yml
secrets: inherit
with:
version: ${{ needs.get-version.outputs.version }}
checkout-ref: ${{ github.base_ref }}
publish-to-nuget:
needs: [get-version,build]
uses: ./.github/workflows/step-publish.yml
secrets: inherit
with:
deploy-env: nuget
deploy-branch: ${{ github.base_ref }}
version: ${{ needs.get-version.outputs.version }}
tag-release:
needs: [get-version,publish-to-nuget]
uses: ./.github/workflows/step-tag-release.yml
with:
version: ${{ needs.get-version.outputs.version }}
merge-master-to-develop:
needs: [publish-to-nuget]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Create Pull Request
env:
GH_TOKEN: ${{ secrets.CREATE_PR_TOKEN }}
run: |
echo -e "This PR merges the master branch back into develop.\nThis happens to ensure that the updates that happened on the release branch, i.e. CHANGELOG updates are also present on the develop branch." > msg.txt
export msg=$(cat msg.txt) ; gh pr create \
--head master \
--base develop \
--title "Merge master into develop branch" \
--body "$msg"