11# DO NOT EDIT. Generated with:
22#
3- # devctl@6.15.1
3+ # devctl@6.17.2-dev
44#
55name : Create Release
66on :
9393 uses :
giantswarm/[email protected] 9494 with :
9595 binary : " architect"
96- version : " 6.11 .0"
96+ version : " 6.13 .0"
9797 - name : Install semver
9898 uses :
giantswarm/[email protected] 9999 with :
@@ -102,6 +102,12 @@ jobs:
102102 download_url : " https://github.com/fsaintjacques/${binary}-tool/archive/${version}.tar.gz"
103103 tarball_binary_path : " */src/${binary}"
104104 smoke_test : " ${binary} --version"
105+ - name : Generate a token
106+ id : generate_token
107+ uses : actions/create-github-app-token@v1
108+ with :
109+ app-id : ${{ secrets.HERALD_APP_ID }}
110+ private-key : ${{ secrets.HERALD_APP_KEY }}
105111 - name : Checkout code
106112 uses : actions/checkout@v4
107113 - name : Update project.go
@@ -122,22 +128,22 @@ jobs:
122128 fi
123129 - name : Set up git identity
124130 run : |
125- git config --local user.email "[email protected] " 126- git config --local user.name "taylorbot "
131+ git config --local user.email "149080493+heraldbot[bot]@users.noreply.github.com "
132+ git config --local user.name "HeraldBot[bot] "
127133 - name : Commit changes
128134 run : |
129135 file="${{ needs.gather_facts.outputs.project_go_path }}"
130136 git add $file
131137 git commit -m "Bump version to ${{ steps.update_project_go.outputs.new_version }}"
132138 - name : Push changes
133139 env :
134- REMOTE_REPO : " https://${{ github.actor }}:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/${{ github.repository }}.git"
140+ REMOTE_REPO : " https://${{ github.actor }}:${{ steps.generate_token.outputs.token }}@github.com/${{ github.repository }}.git"
135141 branch : " ${{ github.ref }}-version-bump"
136142 run : |
137143 git push "${REMOTE_REPO}" HEAD:${{ env.branch }}
138144 - name : Create PR
139145 env :
140- GITHUB_TOKEN : " ${{ secrets.TAYLORBOT_GITHUB_ACTION }}"
146+ GITHUB_TOKEN : " ${{ steps.generate_token.outputs.token }}"
141147 base : " ${{ github.ref }}"
142148 branch : " ${{ github.ref }}-version-bump"
143149 version : " ${{ needs.gather_facts.outputs.version }}"
@@ -153,9 +159,17 @@ jobs:
153159 outputs :
154160 upload_url : ${{ steps.create_gh_release.outputs.upload_url }}
155161 steps :
162+ - name : Generate a token
163+ id : generate_token
164+ uses : actions/create-github-app-token@v1
165+ with :
166+ app-id : ${{ secrets.HERALD_APP_ID }}
167+ private-key : ${{ secrets.HERALD_APP_KEY }}
156168 - name : Checkout code
157169 uses : actions/checkout@v4
158170 with :
171+ token : ${{ steps.generate_token.outputs.token }}
172+ persist-credentials : false
159173 ref : ${{ github.sha }}
160174 - name : Ensure correct version in project.go
161175 if : ${{ needs.gather_facts.outputs.project_go_path != '' && needs.gather_facts.outputs.ref_version != 'true' }}
@@ -171,26 +185,25 @@ jobs:
171185 path : ./CHANGELOG.md
172186 - name : Set up git identity
173187 run : |
174- git config --local user.email "[email protected] " 175- git config --local user.name "taylorbot "
188+ git config --local user.email "149080493+heraldbot[bot]@users.noreply.github.com "
189+ git config --local user.name "HeraldBot[bot] "
176190 - name : Create tag
177191 run : |
178192 version="${{ needs.gather_facts.outputs.version }}"
179193 git tag "v$version" ${{ github.sha }}
180194 - name : Push tag
181195 env :
182- REMOTE_REPO : " https://${{ github.actor }}:${{ secrets.TAYLORBOT_GITHUB_ACTION }}@github.com/${{ github.repository }}.git"
196+ REMOTE_REPO : " https://${{ github.actor }}:${{ steps.generate_token.outputs.token }}@github.com/${{ github.repository }}.git"
183197 run : |
184198 git push "${REMOTE_REPO}" --tags
185199 - name : Create release
186200 id : create_gh_release
187- uses : actions/create- release@v1
201+ uses : ncipollo/ release-action @v1
188202 env :
189- GITHUB_TOKEN : " ${{ secrets.TAYLORBOT_GITHUB_ACTION }}"
203+ GITHUB_TOKEN : " ${{ steps.generate_token.outputs.token }}"
190204 with :
191205 body : ${{ steps.changelog_reader.outputs.changes }}
192- tag_name : " v${{ needs.gather_facts.outputs.version }}"
193- release_name : " v${{ needs.gather_facts.outputs.version }}"
206+ tag : " v${{ needs.gather_facts.outputs.version }}"
194207
195208 create-release-branch :
196209 name : Create release branch
0 commit comments