feat(cog): add ability to specify if we need to check from latest tag only

This commit is contained in:
2024-11-21 22:39:24 +02:00
parent 3512ce520d
commit fcc9ac5d86
2 changed files with 12 additions and 1 deletions

View File

@@ -2,6 +2,11 @@ name: Cog Check
on:
pull_request:
workflow_call:
inputs:
check-latest-tag-only:
type: boolean
required: false
default: true
jobs:
release:
@@ -16,6 +21,6 @@ jobs:
- name: Semver release
uses: cocogitto/cocogitto-action@v3
with:
check-latest-tag-only: true
check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
git-user: "gitea-bot"
git-user-email: "bot@git.palkoi.net"

View File

@@ -4,6 +4,11 @@ on:
branches:
- main
workflow_call:
inputs:
check-latest-tag-only:
type: boolean
required: false
default: true
jobs:
release:
@@ -28,6 +33,7 @@ jobs:
release: true
git-user: "gitea-bot"
git-user-email: "bot@git.palkoi.net"
check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
- name: Generate Changelog
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md