From 9b91045a23749dcffcd5b674371355939cc8e63b Mon Sep 17 00:00:00 2001 From: Nicolas BRIERE Date: Wed, 31 Jul 2024 17:40:32 +0200 Subject: [PATCH] chore(release-please): customize release type --- .github/workflows/gh-release-please.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gh-release-please.yml b/.github/workflows/gh-release-please.yml index 186ecfa..91bf174 100644 --- a/.github/workflows/gh-release-please.yml +++ b/.github/workflows/gh-release-please.yml @@ -7,6 +7,10 @@ on: required: false type: boolean default: true + release_type: + required: false + type: string + default: terraform-module push: branches: - 'main' @@ -23,11 +27,7 @@ jobs: - uses: googleapis/release-please-action@v4 id: release with: - release-type: terraform-module - - name: Debug outputs - run: | - echo "Release Created: ${{ steps.release.outputs.release_created }}" - echo "Major and Minor Tags: ${{ env.major_and_minor_tags }}" + release-type: ${{ inputs.release_type }} - uses: actions/checkout@v4 - name: tag major and minor versions if: ${{ steps.release.outputs.release_created && env.major_and_minor_tags == 'true' }}