Skip to content

chore: bump github.com/hashicorp/go-version in the terraform group (#57) #57

chore: bump github.com/hashicorp/go-version in the terraform group (#57)

chore: bump github.com/hashicorp/go-version in the terraform group (#57) #57

on:
push:
branches:
- master
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
id: configure-changelog
with:
result-encoding: string
script: |
const changelogTypes = [
{type: "feat", section: "Features", hidden: false},
{type: "chore", section: "Misc", hidden: false},
{type: "fix", section: "BugFixes", hidden: false},
]
return JSON.stringify(changelogTypes)
- name: release please
uses: google-github-actions/[email protected]
id: release
with:
release-type: simple
bump-minor-pre-major: true
changelog-types: ${{ steps.configure-changelog.outputs.result }}
# https://github.com/google-github-actions/release-please-action#github-credentials
token: ${{ secrets.VINCENT_PAT }}
- uses: actions/checkout@v4
# we need to fetch all history and tags
# so we build the proper version
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-go@v5
with:
go-version-file: ".go-version"
if: ${{ steps.release.outputs.release_created }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.VINCENT_PAT }}
if: ${{ steps.release.outputs.release_created }}