8
8
description : ' Version - patch version of the release (e.g. x.y.z)'
9
9
required : true
10
10
type : string
11
- release_commit_branch :
12
- description : ' Release Commit Branch - the branch on which the release commit will be made.'
13
- required : true
14
- type : string
15
11
draft :
16
12
description : ' Draft - true if the release should be a draft'
17
13
required : true
76
72
runs-on : ubuntu-latest
77
73
outputs :
78
74
commit_hash : ${{ steps.empty-commit.outputs.commit_hash }}
79
- # release-ref-or-commit: ${{ steps.resolve-release-commit.outputs.release-ref-or-commit }}
80
75
steps :
81
76
- uses : actions/create-github-app-token@v1
82
77
id : app-token
@@ -85,17 +80,20 @@ jobs:
85
80
private-key : ${{ secrets.RELEASE_CONTROLLER_APP_PRIVATE_KEY }}
86
81
owner : ${{ github.repository_owner }}
87
82
repositories : " backup-utils,backup-utils-private"
83
+ - name : Get major-feature from version
84
+ id : get-major-feature
85
+ run : |
86
+ echo "major-feature=\"$(echo "${{ github.event.inputs.version }}" | cut -d '.' -f 1,2)\"" >> "$GITHUB_OUTPUT"
88
87
- name : Checkout backup-utils
89
88
uses : actions/checkout@v4
90
89
with :
91
90
token : ${{ steps.app-token.outputs.token }}
92
91
repository : github/backup-utils
93
92
- name : Create empty commit
94
- # if: github.event.inputs.release_commit_branch == ''
95
93
uses : stefanzweifel/git-auto-commit-action@v4
96
94
id : empty-commit
97
95
with :
98
- branch : ${{ github.event.inputs.release_commit_branch }}
96
+ branch : ${{ steps.get-major-feature.outputs.major-feature}}-stable
99
97
commit_message : " Test ${{ github.event.inputs.version }} release commit"
100
98
commit_user_name : " release-controller[bot]"
101
99
commit_user_email : " 223695+release-controller[bot]@users.noreply.github.com"
@@ -134,10 +132,10 @@ jobs:
134
132
name : |
135
133
GitHub Enterprise Server Backup Utilities v${{ github.event.inputs.version }}
136
134
artifacts : |
137
- github-backup-utils-v${{ github.event.inputs.version }}.tar.gz, \
135
+ github-backup-utils-v${{ github.event.inputs.version }}.tar.gz,
138
136
github-backup-utils_${{ github.event.inputs.version }}_all.deb
139
137
tag : v${{ github.event.inputs.version }}
140
- commit : 3.9-main
138
+ commit : ${{ steps.get-major-feature.outputs.major-feature}}-stable
141
139
bodyFile : release-notes/${{ github.event.inputs.version }}.md
142
140
draft : ${{ github.event.inputs.draft }}
143
141
allowUpdates : true
0 commit comments