feat(cog)!: update how releases are handled
This commit is contained in:
19
.gitea/workflows/cog-check.yml
Normal file
19
.gitea/workflows/cog-check.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: Cog Check
|
||||
on:
|
||||
pull_request:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Create release
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Semver release
|
||||
uses: cocogitto/cocogitto-action@v3
|
||||
with:
|
||||
check-latest-tag-only: true
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Release
|
||||
name: Cog Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
@@ -25,7 +28,6 @@ jobs:
|
||||
release: true
|
||||
git-user: "gitea-bot"
|
||||
git-user-email: "bot@git.palkoi.net"
|
||||
check-latest-tag-only: true
|
||||
|
||||
- name: Generate Changelog
|
||||
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md
|
||||
12
cog.toml
Normal file
12
cog.toml
Normal file
@@ -0,0 +1,12 @@
|
||||
[packages]
|
||||
build-docker-image = { path = ".gitea/workflows/build-docker-image.yml" }
|
||||
cog-check.yml = { path = ".gitea/workflows/cog-check.yml" }
|
||||
cog-release.yml = { path = ".gitea/workflows/cog-release.yml" }
|
||||
otf-apply.yml = { path = ".gitea/workflows/otf-apply.yml" }
|
||||
otf-plan.yml = { path = ".gitea/workflows/otf-plan.yml" }
|
||||
sec-blackbox-decrypt.yml = { path = ".gitea/workflows/sec-blackbox-decrypt.yml" }
|
||||
sec-checks-trivy.yml = { path = ".gitea/workflows/sec-checks-trivy.yml" }
|
||||
sec-megalinter.yml = { path = ".gitea/workflows/sec-megalinter.yml" }
|
||||
tf-apply.yml = { path = ".gitea/workflows/tf-apply.yml" }
|
||||
tf-docs.yml = { path = ".gitea/workflows/tf-docs.yml" }
|
||||
tf-plan.yml = { path = ".gitea/workflows/tf-plan.yml" }
|
||||
Reference in New Issue
Block a user