diff --git a/.github/workflows/gh-release-please.yml b/.github/workflows/gh-release-please.yml index ff796cb..ff78ead 100644 --- a/.github/workflows/gh-release-please.yml +++ b/.github/workflows/gh-release-please.yml @@ -5,8 +5,7 @@ on: inputs: major_and_minor_tags: required: false - type: boolean - default: true + type: string release_type: required: false type: string @@ -28,6 +27,8 @@ jobs: permissions: contents: write pull-requests: write + env: + major_and_minor_tags: ${{ inputs.major_and_minor_tags || true }} steps: - uses: actions/checkout@v4 - uses: googleapis/release-please-action@v4 @@ -37,7 +38,7 @@ jobs: config-file: ${{ inputs.release_please_config_file }} manifest-file: ${{ inputs.release_please_manifest_file }} - name: tag major and minor versions - if: ${{ steps.release.outputs.releases_created && inputs.major_and_minor_tags }} + if: ${{ steps.release.outputs.releases_created == 'true' && env.major_and_minor_tags == 'true' }} run: | git config user.name github-actions[bot] git config user.email 41898282+github-actions[bot]@users.noreply.github.com