4 Commits

Author SHA1 Message Date
b9f9f87068 feat: add release job
All checks were successful
Cog release / Create release (push) Successful in 9s
2026-01-04 02:23:22 +02:00
cd9815dfb3 fix(cocogitto/cocogitto-action): checkout head sha 2026-01-04 02:17:45 +02:00
50ff19fae2 chore(deps): cocogitto/cocogitto-action - checkout head sha
All checks were successful
Cog release / Create release (push) Successful in 8s
2026-01-04 01:41:25 +02:00
63da84fe0a chore(deps): update cocogitto/cocogitto-action action to v4
All checks were successful
Cog check / Create release (pull_request) Successful in 6s
Cog release / Create release (push) Successful in 9s
2026-01-03 17:59:18 +02:00
3 changed files with 28 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ jobs:
- name: Semver release
uses: cocogitto/cocogitto-action@v4
with:
# check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
check-latest-tag-only: true
command: check
args: --from-latest-tag
git-user: "gitea-bot"
git-user-email: "bot@git.palkoi.net"

View File

@@ -1,15 +1,12 @@
---
name: Cog release
on:
push:
branches:
- main
workflow_call:
# inputs:
# check-latest-tag-only:
# type: boolean
# required: false
# default: true
inputs:
ref:
type: string
required: false
default: ""
jobs:
release:
@@ -20,6 +17,7 @@ jobs:
- uses: actions/checkout@v6
with:
fetch-depth: 0
ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
- run: |
git config user.name gitea-bot
@@ -31,17 +29,20 @@ jobs:
uses: cocogitto/cocogitto-action@v4
id: release
with:
release: true
command: bump
args: --auto
git-user: "gitea-bot"
git-user-email: "bot@git.palkoi.net"
check-latest-tag-only: true
# 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
id: changelog
uses: cocogitto/cocogitto-action@v4
with:
command: changelog
args: --at ${{ steps.release.outputs.version }} -t full_hash
- name: Upload github release
uses: softprops/action-gh-release@v2
with:
body_path: GITHUB_CHANGELOG.md
body: ${{ steps.changelog.outputs.stdout }}
tag_name: ${{ steps.release.outputs.version }}

View File

@@ -0,0 +1,12 @@
---
name: Cog release
on:
push:
branches:
- main
jobs:
release:
name: Create release
runs-on: ubuntu-latest
uses: ./.gitea/workflows/cog-release.yml