From f3555c15704996894737d3c3f8653e3596488334 Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 17 May 2026 21:05:43 +0000 Subject: [PATCH] fix(ci): use github.ref_type for upload conditions to fix Gitea runner compatibility --- .gitea/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 87f4442..219522c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -175,7 +175,7 @@ jobs: run: | sudo dpkg-buildpackage -us -uc -b -d - name: Upload to Gitea Release - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' env: GITEA_TOKEN: ${{ secrets.GITEATOKEN }} run: | @@ -208,7 +208,7 @@ jobs: run: | sudo dpkg-buildpackage -us -uc -b -d - name: Upload to Gitea Release - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' env: GITEA_TOKEN: ${{ secrets.GITEATOKEN }} run: | @@ -248,7 +248,7 @@ jobs: chmod +x build-rpm.sh ./build-rpm.sh - name: Upload to Gitea Release - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' env: GITEA_TOKEN: ${{ secrets.GITEATOKEN }} run: | @@ -285,7 +285,7 @@ jobs: chmod +x build-alpine.sh SKIP_CARGO_BUILD=1 ./build-alpine.sh - name: Upload to Gitea Release - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' env: GITEA_TOKEN: ${{ secrets.GITEATOKEN }} run: |