From 339cf6f48b5f6ecc2549180787b45ab88465fb8d Mon Sep 17 00:00:00 2001 From: Nicolas BRIERE Date: Wed, 7 Aug 2024 15:35:47 +0200 Subject: [PATCH] fix(release-please): don't set terraform_module by default part 2 --- .github/workflows/gh-release-please.yml | 2 +- .release-please-manifest.json | 3 ++ release-please-config.json | 59 +++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/gh-release-please.yml b/.github/workflows/gh-release-please.yml index 9775077..92e4fa0 100644 --- a/.github/workflows/gh-release-please.yml +++ b/.github/workflows/gh-release-please.yml @@ -35,7 +35,7 @@ jobs: - uses: googleapis/release-please-action@v4 id: release with: - release-type: ${{ inputs.release_type || 'terraform-module' }} + release-type: ${{ inputs.release_type }} config-file: ${{ inputs.release_please_config_file }} manifest-file: ${{ inputs.release_please_manifest_file }} - name: tag major and minor versions diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..e18ee07 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..7ee0505 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,59 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "simple", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "feature", + "section": "feature" + }, + { + "type": "fix", + "section": "Bug Fixes" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "revert", + "section": "Reverts" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "chore", + "section": "Miscellaneous Chores" + }, + { + "type": "refactor", + "section": "Code Refactoring" + }, + { + "type": "test", + "section": "Tests" + }, + { + "type": "build", + "section": "Build System" + }, + { + "type": "ci", + "section": "Continuous Integration" + } + ], + "draft": false, + "prerelease": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file