Skip to content

fix: Fixed conditional. #2

fix: Fixed conditional.

fix: Fixed conditional. #2

Workflow file for this run

name: Main Checks
on:
push:
branches:
- release-test
jobs:
build-release:
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 }}'