Skip to content

chore: apply updates #21

chore: apply updates

chore: apply updates #21

Workflow file for this run

name: Release
on:
push:
branches:
- '**'
jobs:
release:
name: Create Semantic Release
runs-on: ubuntu-latest
strategy:
matrix:
submodule: [ '', 'tenant' ]
steps:
- name: Checkout code
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Semantic versioning
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
dry_run: ${{ (github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master') && 'true' || 'false' }}
tag_prefix: ${{ matrix.submodule == '' && 'v' || format('{0}/v', matrix.submodule) }}
custom_release_rules: 'chore:patch:Chore'
- name: Print changelog to job summary
if: ${{ matrix.submodule == '' }}
run: |
echo '## Changelog' >> $GITHUB_STEP_SUMMARY
echo "${{ steps.tag_version.outputs.changelog }}" >> $GITHUB_STEP_SUMMARY
- name: Create GitHub Release
uses: ncipollo/release-action@v1
if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') && steps.tag_version.outputs.new_tag && matrix.submodule == '' }}
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
token: ${{ secrets.GITHUB_TOKEN }}