From 7887f3c65067c9f6b4b1fa820506cc8411f74c6e Mon Sep 17 00:00:00 2001 From: tomoron Date: Tue, 15 Apr 2025 20:00:48 +0200 Subject: [PATCH] add tag to release step --- .gitea/workflows/default.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/default.yaml b/.gitea/workflows/default.yaml index 656ee26..53cbc44 100644 --- a/.gitea/workflows/default.yaml +++ b/.gitea/workflows/default.yaml @@ -20,17 +20,22 @@ jobs: #- name: build iso # run: make iso - - name: Create tag + - name: get commit tag + id: vars + run: echo "TAG=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + + - name: create tag run: | TAG=$(git rev-parse --short HEAD) git config user.name "github-actions" git config user.email "actions@github.com" - git tag $TAG - git push origin $TAG + git tag ${{steps.vars.outputs.TAG}} + git push origin ${{steps.vars.outputs.TAG}} - name: create release uses: https://gitea.com/actions/release-action@main with: + tag_name: ${{steps.vars.outputs.TAG}} files: |- flake.nix api_key: '${{secrets.RELEASE_TOKEN}}'