diff --git a/.gitea/workflows/action-test.yaml b/.gitea/workflows/action-test.yaml index c537cc6..a28e574 100644 --- a/.gitea/workflows/action-test.yaml +++ b/.gitea/workflows/action-test.yaml @@ -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: diff --git a/.gitea/workflows/version-tag.yaml b/.gitea/workflows/version-tag.yaml new file mode 100644 index 0000000..03246a0 --- /dev/null +++ b/.gitea/workflows/version-tag.yaml @@ -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"