2
2
#
3
3
# devctl
4
4
#
5
- # https://github.com/giantswarm/devctl/blob/7345de0273fb431a392dc15f53961b523dba2b5e /pkg/gen/input/workflows/internal/file/create_release_pr.yaml.template
5
+ # https://github.com/giantswarm/devctl/blob/43bd088e6bf64525a8e566fc1b0f4761a293afc4 /pkg/gen/input/workflows/internal/file/create_release_pr.yaml.template
6
6
#
7
7
name : Create Release PR
8
8
on :
@@ -136,12 +136,50 @@ jobs:
136
136
else
137
137
echo "skip=false" >> $GITHUB_OUTPUT
138
138
fi
139
+ prepare_release_pr :
140
+ name : Prepare release PR for Backstage project
141
+ runs-on : ubuntu-22.04
142
+ needs :
143
+ - gather_facts
144
+ if : ${{ needs.gather_facts.outputs.skip != 'true' && github.repository == 'giantswarm/backstage' }}
145
+ steps :
146
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
147
+ with :
148
+ ref : ${{ needs.gather_facts.outputs.branch }}
149
+ - uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
150
+ with :
151
+ node-version : ' 20'
152
+ - uses : borales/actions-yarn@3766bb1335b98fb13c60eaf358fe20811b730a88 # v5.0.0
153
+ with :
154
+ cmd : install
155
+ - name : Prepare release PR
156
+ uses : borales/actions-yarn@3766bb1335b98fb13c60eaf358fe20811b730a88 # v5.0.0
157
+ with :
158
+ cmd : release
159
+ env :
160
+ RELEASE_VERSION : ${{ needs.gather_facts.outputs.version }}
161
+ - name : Set up git identity
162
+ run : |
163
+ git config --local user.email "[email protected] "
164
+ git config --local user.name "taylorbot"
165
+ - name : Create commit
166
+ env :
167
+ version : " ${{ needs.gather_facts.outputs.version }}"
168
+ run : |
169
+ git add -A
170
+ git commit -m "Prepare release v${{ env.version }}"
171
+ - name : Push changes
172
+ env :
173
+ remote_repo : " https://${{ github.actor }}:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/${{ github.repository }}.git"
174
+ run : |
175
+ git push "${remote_repo}" HEAD:${{ needs.gather_facts.outputs.branch }}
139
176
create_release_pr :
140
177
name : Create release PR
141
178
runs-on : ubuntu-22.04
142
179
needs :
143
180
- gather_facts
144
- if : ${{ needs.gather_facts.outputs.skip != 'true' }}
181
+ - prepare_release_pr
182
+ if : ${{ always() && needs.gather_facts.outputs.skip != 'true' }}
145
183
env :
146
184
architect_flags : " --organisation ${{ github.repository_owner }} --project ${{ needs.gather_facts.outputs.repo_name }}"
147
185
steps :
@@ -154,7 +192,7 @@ jobs:
154
192
binary : " architect"
155
193
version : " 6.17.0"
156
194
- name : Checkout code
157
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
195
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
158
196
with :
159
197
ref : ${{ needs.gather_facts.outputs.branch }}
160
198
- name : Prepare release changes
0 commit comments