From c51e46ee2c25dbcfb728f8bee04d1433bb4d76de Mon Sep 17 00:00:00 2001 From: Nicolas BRIERE Date: Wed, 31 Jul 2024 16:28:34 +0200 Subject: [PATCH] feat(release-please): make conditionnal major and minor tags --- .github/workflows/gh-release-please.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-release-please.yml b/.github/workflows/gh-release-please.yml index 658ed6b..ac285c8 100644 --- a/.github/workflows/gh-release-please.yml +++ b/.github/workflows/gh-release-please.yml @@ -2,12 +2,20 @@ name: "Github-ReleasePlease" on: workflow_call: + inputs: + major_and_minor_tags: + required: false + type: boolean + default: true push: branches: - 'main' + jobs: github-releaseplease: runs-on: ubuntu-latest + env: + major_and_minor_tags: ${{ inputs.major_and_minor_tags }} permissions: contents: write pull-requests: write @@ -18,7 +26,7 @@ jobs: release-type: terraform-module - uses: actions/checkout@v4 - name: tag major and minor versions - if: ${{ steps.release.outputs.release_created }} + if: ${{ steps.release.outputs.release_created && env.major_and_minor_tags }} run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com