From ff302530f8a28f2809c789a6475c0d1ae4cd6541 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Mon, 13 Oct 2025 20:35:18 +0200 Subject: [PATCH 1/6] feat: add release-git-tag --- README.md | 6 +++++- release-git-tag/README.md | 9 +++++++++ release-git-tag/action.yaml | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 release-git-tag/README.md create mode 100644 release-git-tag/action.yaml diff --git a/README.md b/README.md index ff24588..0ea257c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ # actions -Collection of Gitea friendly actions & workflows \ No newline at end of file +Collection of Gitea friendly actions. + +## Actions + +- [release-git-tag](./release-git-tag//README.md) diff --git a/release-git-tag/README.md b/release-git-tag/README.md new file mode 100644 index 0000000..3758d64 --- /dev/null +++ b/release-git-tag/README.md @@ -0,0 +1,9 @@ +# release-git-tag + +Creates and pushes a Git tag to the remote repository. + +```yaml +- uses: ./release-git-tag + with: + tag: v1.0.0 +``` diff --git a/release-git-tag/action.yaml b/release-git-tag/action.yaml new file mode 100644 index 0000000..b74d673 --- /dev/null +++ b/release-git-tag/action.yaml @@ -0,0 +1,15 @@ +name: Release Git tag +description: Releases a Git to origin + +inputs: + tag: + description: The tag to release + required: true + +runs: + using: "composite" + steps: + - shell: bash + run: | + git tag ${{ inputs.tag }} + git push origin ${{ inputs.tag }} -- 2.49.1 From daf752884ee8ae0b926f918d00ba214b2b6e47b8 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Mon, 13 Oct 2025 20:35:36 +0200 Subject: [PATCH 2/6] add simple cicd --- .gitea/workflows/cd.yaml | 25 +++++++++++++++++++++++++ .gitea/workflows/ci.yaml | 14 ++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .gitea/workflows/cd.yaml create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml new file mode 100644 index 0000000..65ca5bc --- /dev/null +++ b/.gitea/workflows/cd.yaml @@ -0,0 +1,25 @@ +name: CD + +on: + push: + branches: + - main + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + - run: npm ci + - name: Increment tag + id: tag + uses: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment@0.1.2 + with: + token: ${{ secrets.GITEA_TOKEN }} + - name: Push tag + run: | + git tag ${{ steps.tag.outputs.new-tag }} + git push origin ${{ steps.tag.outputs.new-tag }} diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..db40257 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,14 @@ +name: CI + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-go@v6 + with: + go-version: 1.25.1 + - run: go install github.com/rhysd/actionlint/cmd/actionlint@latest + - run: actionlint -- 2.49.1 From c4817357cf7eb6f635d871f15858e9ae6f22808d Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Mon, 13 Oct 2025 20:36:30 +0200 Subject: [PATCH 3/6] add renovate --- renovate.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..9e28a36 --- /dev/null +++ b/renovate.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "local>t.behrendt/renovate-configs:common", + "local>t.behrendt/renovate-configs:action" + ] +} -- 2.49.1 From 9e204f516da5fce5ade9ccdd9b256538e733c734 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Mon, 13 Oct 2025 20:37:25 +0200 Subject: [PATCH 4/6] run ci only on pull_request --- .gitea/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index db40257..02c55ad 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,6 +1,7 @@ name: CI -on: [push, pull_request] +on: + pull_request: jobs: lint: -- 2.49.1 From 41d8d39f12f41e94904668c329af87b7874dab06 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Mon, 13 Oct 2025 20:43:05 +0200 Subject: [PATCH 5/6] switch to more basic yamllint --- .gitea/workflows/ci.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 02c55ad..cf5d334 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -8,8 +8,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: actions/setup-go@v6 + - uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1 with: - go-version: 1.25.1 - - run: go install github.com/rhysd/actionlint/cmd/actionlint@latest - - run: actionlint + file_or_dir: "*/action.yaml" -- 2.49.1 From 15297c4fdf396f5bd8780c93d616f7bace687c1e Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Mon, 13 Oct 2025 20:44:05 +0200 Subject: [PATCH 6/6] remove ci --- .gitea/workflows/ci.yaml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml deleted file mode 100644 index cf5d334..0000000 --- a/.gitea/workflows/ci.yaml +++ /dev/null @@ -1,13 +0,0 @@ -name: CI - -on: - pull_request: - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1 - with: - file_or_dir: "*/action.yaml" -- 2.49.1