From 6daafc6841dbbb067257b935bb1230c099156e31 Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Thu, 21 Nov 2024 22:12:08 +0200 Subject: [PATCH 1/3] feat(cog)!: update how releases are handled --- .gitea/workflows/cog-check.yml | 19 +++++++++++++++++++ .../{release.yml => cog-release.yml} | 6 ++++-- cog.toml | 12 ++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/cog-check.yml rename .gitea/workflows/{release.yml => cog-release.yml} (94%) create mode 100644 cog.toml diff --git a/.gitea/workflows/cog-check.yml b/.gitea/workflows/cog-check.yml new file mode 100644 index 0000000..efe523b --- /dev/null +++ b/.gitea/workflows/cog-check.yml @@ -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 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/cog-release.yml similarity index 94% rename from .gitea/workflows/release.yml rename to .gitea/workflows/cog-release.yml index 293025f..df1bdfe 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/cog-release.yml @@ -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 diff --git a/cog.toml b/cog.toml new file mode 100644 index 0000000..f25877b --- /dev/null +++ b/cog.toml @@ -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" } -- 2.49.1 From c5017145ca46a917a40dd29d0cfc4d6b45fdcf7f Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Thu, 21 Nov 2024 22:16:03 +0200 Subject: [PATCH 2/3] feat(cog): specify git username/email --- .gitea/workflows/cog-check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/cog-check.yml b/.gitea/workflows/cog-check.yml index efe523b..7fd675e 100644 --- a/.gitea/workflows/cog-check.yml +++ b/.gitea/workflows/cog-check.yml @@ -17,3 +17,5 @@ jobs: uses: cocogitto/cocogitto-action@v3 with: check-latest-tag-only: true + git-user: "gitea-bot" + git-user-email: "bot@git.palkoi.net" -- 2.49.1 From 3512ce520d556f5b321860c3c02ff067cc47d5e7 Mon Sep 17 00:00:00 2001 From: Mykhailo Nikiforov Date: Thu, 21 Nov 2024 22:30:37 +0200 Subject: [PATCH 3/3] feat(cog): update package names --- cog.toml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cog.toml b/cog.toml index f25877b..2a3ec74 100644 --- a/cog.toml +++ b/cog.toml @@ -1,12 +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" } +build-docker-image = { path = ".gitea/workflows/build-docker-image" } +cog-check = { path = ".gitea/workflows/cog-check.yml" } +cog-release = { path = ".gitea/workflows/cog-release.yml" } +otf-apply = { path = ".gitea/workflows/otf-apply.yml" } +otf-plan = { path = ".gitea/workflows/otf-plan.yml" } +sec-blackbox-decrypt = { path = ".gitea/workflows/sec-blackbox-decrypt.yml" } +sec-checks-trivy = { path = ".gitea/workflows/sec-checks-trivy.yml" } +sec-megalinter = { path = ".gitea/workflows/sec-megalinter.yml" } +tf-apply = { path = ".gitea/workflows/tf-apply.yml" } +tf-docs = { path = ".gitea/workflows/tf-docs.yml" } +tf-plan = { path = ".gitea/workflows/tf-plan.yml" } -- 2.49.1