Skip to content

Commit

Permalink
fix(release-please): creation of major tag condition 6
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbriere1 committed Aug 7, 2024
1 parent fdd8e0c commit 526c641
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gh-release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
inputs:
major_and_minor_tags:
required: false
type: boolean
default: true
type: string
release_type:
required: false
type: string
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 526c641

Please sign in to comment.