Skip to content

Commit 7564a32

Browse files
committed
ci: moving major tag
1 parent 0b784fe commit 7564a32

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020
- name: Run Release Please
21+
id: release
2122
uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38
2223
with:
2324
config-file: release-please-config.json
2425
manifest-file: .release-please-manifest.json
26+
- name: Update moving major tag
27+
if: ${{ steps.release.outputs.release_created }}
28+
run: |
29+
major="${{ steps.release.outputs.major }}"
30+
tag="v${major}"
31+
git config user.name "github-actions[bot]"
32+
git config user.email "github-actions[bot]@users.noreply.github.com"
33+
git tag -f "$tag"
34+
git push -f origin "$tag"

0 commit comments

Comments
 (0)