From c400f62e81047e5196733165d491dbb1802b1ce1 Mon Sep 17 00:00:00 2001 From: continuist Date: Sat, 5 Jul 2025 12:19:09 -0400 Subject: [PATCH] Use correct stage run on branch conditional --- .forgejo/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 816f0c9..85823b9 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: test: name: Run Tests (DinD) runs-on: ci - if: env.GITEA_REF == 'refs/heads/main' + if: ${{ startsWith(gitea.ref, 'refs/heads/main') }} steps: - name: Setup DinD Environment @@ -120,7 +120,7 @@ jobs: name: Build and Push Docker Images (DinD) needs: [test] runs-on: ci - if: env.GITEA_REF == 'refs/heads/main' + if: ${{ startsWith(gitea.ref, 'refs/heads/main') }} steps: - name: Set up Docker Buildx in DinD @@ -183,7 +183,7 @@ jobs: name: Deploy to Production needs: build-and-push runs-on: prod - if: env.GITEA_REF == 'refs/heads/main' + if: ${{ startsWith(gitea.ref, 'refs/heads/main') }} steps: - name: Setup deployment directory