✨feature: Add version tagging workflow and update action demo trigger
This commit is contained in:
@@ -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:
|
||||
|
||||
27
.gitea/workflows/version-tag.yaml
Normal file
27
.gitea/workflows/version-tag.yaml
Normal 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"
|
||||
Reference in New Issue
Block a user