From f9790792560d8f78010d48251a9efa9f9fdbc8c3 Mon Sep 17 00:00:00 2001 From: gtxaspec Date: Sat, 30 Nov 2024 17:35:46 -0800 Subject: [PATCH] workflow: adjust release --- .github/workflows/firmware.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/firmware.yaml b/.github/workflows/firmware.yaml index 8ec1416f6..f022aaa40 100644 --- a/.github/workflows/firmware.yaml +++ b/.github/workflows/firmware.yaml @@ -271,6 +271,16 @@ jobs: ${{ env.FULL_FW_ROOTFS_TAR }} ${{ env.FULL_FW_SHA }} + - name: Create Release Tag + run: | + TAG_NAME="${{ env.TAG_NAME }}" + if ! gh api repos/${{ github.repository }}/git/ref/tags/$TAG_NAME &>/dev/null; then + git tag "$TAG_NAME" + git push origin "$TAG_NAME" + else + echo "Tag $TAG_NAME already exists." + fi + - name: Upload full firmware to release uses: softprops/action-gh-release@master with: