From abd879ab66b618d838ed46b29688a0d18d519df1 Mon Sep 17 00:00:00 2001 From: agent-company Date: Thu, 26 Mar 2026 08:03:55 +0000 Subject: [PATCH] fix: replace github.sha with gitea.sha in CI workflow The Gitea Actions workflow used ${{ github.sha }} which is GitHub Actions syntax. In Gitea Actions the correct context variable is ${{ gitea.sha }}. This caused the image tag SHA component to be empty. Closes leeworks-agents/gitea-mobile#20 Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f588f8f..56f293e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,7 +28,7 @@ jobs: id: tag run: | TIMESTAMP=$(date +%Y%m%d%H%M%S) - SHA=$(echo ${{ github.sha }} | cut -c1-7) + SHA=$(echo ${{ gitea.sha }} | cut -c1-7) echo "tag=${TIMESTAMP}-${SHA}" >> $GITHUB_OUTPUT - name: Build Docker image