From 2c3088325cacd527a2217ac4777dd3534790c564 Mon Sep 17 00:00:00 2001 From: vmfunc Date: Sat, 12 Oct 2024 23:40:26 +0200 Subject: [PATCH] fix: use smaller release tag --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95b0c11..1b732d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,14 +31,17 @@ jobs: - name: Build for Linux run: GOOS=linux GOARCH=amd64 go build -o sif-linux-amd64 ./cmd/sif + - name: Set release version + run: echo "RELEASE_VERSION=$(date +'%Y.%m.%d')" >> $GITHUB_ENV + - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.sha }} - release_name: Release ${{ github.sha }} + tag_name: v${{ env.RELEASE_VERSION }} + release_name: Release ${{ env.RELEASE_VERSION }} draft: false prerelease: false