From 7c3b420d80fb0ef097119fa7bb753fb745fe01bc Mon Sep 17 00:00:00 2001 From: Ajesh Sen Thapa Date: Sun, 11 Aug 2024 23:55:45 +0545 Subject: [PATCH] fix: fix major version tag fetch on pre-commit autoupdate - Created simple tags instead of annotated tags. - Removed creation of minor version 2-digit tag. --- .github/workflows/release-please.yml | 14 +++----------- README.md | 2 +- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 20718ef..65ef497 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -27,17 +27,9 @@ jobs: git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com - # removing previous tags - git tag -d v${{ steps.release.outputs.major }} || true - git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true - git push origin :v${{ steps.release.outputs.major }} || true - git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true - - # creating new tags - git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}" - git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}" - git push origin v${{ steps.release.outputs.major }} - git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} + # create and push major version tag + git tag v${{ steps.release.outputs.major }} + git push origin v${{ steps.release.outputs.major }} -f - name: Set up Python uses: actions/setup-python@v5 diff --git a/README.md b/README.md index 7fb66f2..9e24bd4 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ For more details, please refer to the Conventional Commits specification at http repos: ... - repo: https://github.com/opensource-nepal/commitlint - rev: v1.0.0 + rev: v1.2.0 hooks: - id: commitlint ...