Skip to content

Commit 326f4b8

Browse files
authored
chore(ci): Move tag step before changelog generation. (#2219)
1 parent bcda58f commit 326f4b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,11 @@ jobs:
239239
git config user.email "151832416+aws-powertools-bot@users.noreply.github.com"
240240
git config pull.rebase true
241241
git config remote.origin.url >&-
242+
- id: tag
243+
name: Create tag
244+
run: |
245+
git tag -a v${{ inputs.version }} -m "Release v${{ inputs.version }}"
246+
git push origin v${{ inputs.version }}
242247
- id: branch
243248
name: Create branch and update change log
244249
run: |
@@ -254,11 +259,6 @@ jobs:
254259
--body "This is an automated PR created from the following workflow: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
255260
env:
256261
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
257-
- id: tag
258-
name: Create tag
259-
run: |
260-
git tag -a v${{ inputs.version }} -m "Release v${{ inputs.version }}"
261-
git push origin v${{ inputs.version }}
262262

263263
docs:
264264
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)