diff --git a/.gitea/workflows/git-version.yml b/.gitea/workflows/git-version.yml new file mode 100644 index 0000000..2d044a4 --- /dev/null +++ b/.gitea/workflows/git-version.yml @@ -0,0 +1,19 @@ +name: Git Version + +on: + push: + branches: [main] + +jobs: + git-version: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Get Version + id: version + run: | + VERSION=$(git describe --tags --always --dirty) + echo "VERSION=$VERSION" >> $GITHUB_OUTPUT + - name: Print Version + run: | + echo ${{ steps.version.outputs.VERSION }}