feature: Add version tagging workflow and update action demo trigger

This commit is contained in:
Keith Solomon
2025-03-25 10:06:05 -05:00
parent dc35f25593
commit 931e8b3fc4
2 changed files with 28 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
on: workflow_dispatch
jobs:
Explore-Gitea-Actions:

View File

@@ -0,0 +1,27 @@
name: Gitea Actions Demo
run-name: Use TrunkVer as repo tag
# on: [push]
on: [workflow_dispatch]
jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate TrunkVer
id: trunkver
uses: https://github.com/crftd-tech/trunkver@main
- name: Create tag
env:
TRUNKVER: ${{ steps.trunkver.outputs.trunkver }}
uses: https://github.com/rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: "$TRUNKVER"
tag_exists_error: false
message: "Latest pushed commit"