feat(cog): add ability to specify if we need to check from latest tag only
This commit is contained in:
@@ -2,6 +2,11 @@ name: Cog Check
|
|||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
check-latest-tag-only:
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -16,6 +21,6 @@ jobs:
|
|||||||
- name: Semver release
|
- name: Semver release
|
||||||
uses: cocogitto/cocogitto-action@v3
|
uses: cocogitto/cocogitto-action@v3
|
||||||
with:
|
with:
|
||||||
check-latest-tag-only: true
|
check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
|
||||||
git-user: "gitea-bot"
|
git-user: "gitea-bot"
|
||||||
git-user-email: "bot@git.palkoi.net"
|
git-user-email: "bot@git.palkoi.net"
|
||||||
|
|||||||
@@ -4,6 +4,11 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
check-latest-tag-only:
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -28,6 +33,7 @@ jobs:
|
|||||||
release: true
|
release: true
|
||||||
git-user: "gitea-bot"
|
git-user: "gitea-bot"
|
||||||
git-user-email: "bot@git.palkoi.net"
|
git-user-email: "bot@git.palkoi.net"
|
||||||
|
check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
|
||||||
|
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md
|
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md
|
||||||
|
|||||||
Reference in New Issue
Block a user