Skip to content

Commit

Permalink
chore(release-please): make conditionnal major and minor tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbriere1 committed Jul 31, 2024
1 parent cc35c1f commit 6c0ca89
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/gh-release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6c0ca89

Please sign in to comment.