Skip to content

Commit dffb36b

Browse files
authored
fix: fix major version tag fetch on pre-commit autoupdate (#65)
- Created simple tags instead of annotated tags. - Removed creation of minor version 2-digit tag.
1 parent 62e2ca4 commit dffb36b

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.github/workflows/release-please.yml

+3-11
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,9 @@ jobs:
2727
git config user.name github-actions[bot]
2828
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
2929
30-
# removing previous tags
31-
git tag -d v${{ steps.release.outputs.major }} || true
32-
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
33-
git push origin :v${{ steps.release.outputs.major }} || true
34-
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
35-
36-
# creating new tags
37-
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
38-
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
39-
git push origin v${{ steps.release.outputs.major }}
40-
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
30+
# create and push major version tag
31+
git tag v${{ steps.release.outputs.major }}
32+
git push origin v${{ steps.release.outputs.major }} -f
4133
4234
- name: Set up Python
4335
uses: actions/setup-python@v5

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For more details, please refer to the Conventional Commits specification at http
4545
repos:
4646
...
4747
- repo: https://github.com/opensource-nepal/commitlint
48-
rev: v1.0.0
48+
rev: v1.2.0
4949
hooks:
5050
- id: commitlint
5151
...

0 commit comments

Comments
 (0)