Compare commits
4 Commits
4b3b1ab69f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
b9f9f87068
|
|||
|
cd9815dfb3
|
|||
|
50ff19fae2
|
|||
|
63da84fe0a
|
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: Semver release
|
- name: Semver release
|
||||||
uses: cocogitto/cocogitto-action@v4
|
uses: cocogitto/cocogitto-action@v4
|
||||||
with:
|
with:
|
||||||
# check-latest-tag-only: ${{ inputs.check-latest-tag-only }}
|
command: check
|
||||||
check-latest-tag-only: true
|
args: --from-latest-tag
|
||||||
git-user: "gitea-bot"
|
git-user: "gitea-bot"
|
||||||
git-user-email: "bot@git.palkoi.net"
|
git-user-email: "bot@git.palkoi.net"
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
---
|
---
|
||||||
name: Cog release
|
name: Cog release
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
# inputs:
|
inputs:
|
||||||
# check-latest-tag-only:
|
ref:
|
||||||
# type: boolean
|
type: string
|
||||||
# required: false
|
required: false
|
||||||
# default: true
|
default: ""
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@@ -20,6 +17,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.ref == '' && github.sha || inputs.ref }}
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
git config user.name gitea-bot
|
git config user.name gitea-bot
|
||||||
@@ -31,17 +29,20 @@ jobs:
|
|||||||
uses: cocogitto/cocogitto-action@v4
|
uses: cocogitto/cocogitto-action@v4
|
||||||
id: release
|
id: release
|
||||||
with:
|
with:
|
||||||
release: true
|
command: bump
|
||||||
|
args: --auto
|
||||||
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: true
|
|
||||||
# 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
|
id: changelog
|
||||||
|
uses: cocogitto/cocogitto-action@v4
|
||||||
|
with:
|
||||||
|
command: changelog
|
||||||
|
args: --at ${{ steps.release.outputs.version }} -t full_hash
|
||||||
|
|
||||||
- name: Upload github release
|
- name: Upload github release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
body_path: GITHUB_CHANGELOG.md
|
body: ${{ steps.changelog.outputs.stdout }}
|
||||||
tag_name: ${{ steps.release.outputs.version }}
|
tag_name: ${{ steps.release.outputs.version }}
|
||||||
|
|||||||
12
.gitea/workflows/release.yml
Normal file
12
.gitea/workflows/release.yml
Normal 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
|
||||||
Reference in New Issue
Block a user