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 ...