Skip to content

fix: Adding new release process. #1

fix: Adding new release process.

fix: Adding new release process. #1

Workflow file for this run

name: Main Checks
on:
push:
branches:
- release-test
jobs:
build-release:

Check failure on line 9 in .github/workflows/release-test.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-test.yaml

Invalid workflow file

You have an error in your yaml syntax on line 9
name: Build a release for the module
runs-on: ubuntu-latest
if: !startsWith(github.event.head_commit.message, 'bump:')
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Bump version and create changelog
id: bump
uses: commitizen-tools/commitizen-action@master
with:
push: true
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog_increment_filename: release.md
git_redirect_stderr: true
- name: Output the new version number
run: echo '${{ steps.bump.outputs.version }}'
- name: Get the module name
id: module_name
run: |
REPO_NAME="${{ github.event.repository.name }}"
REPO_NAME="${REPO_NAME/tofu-modules-/}"
MODULE_NAME="${REPO_NAME//-/_}"
echo "name=${MODULE_NAME}" >> $GITHUB_OUTPUT
- name: Output the module name
run: echo '${{ steps.module_name.outputs.name }}'