From fc9afd17204fea8c0609b279c5d70b524b957e5f Mon Sep 17 00:00:00 2001 From: datadunia Date: Wed, 17 Jun 2026 11:48:23 +0700 Subject: [PATCH] fix(ci): use always()!failure() so builds run when test jobs are skipped Gitea Actions skips dependent jobs when ALL needed jobs are skipped, unlike GitHub Actions. Adding always()!failure() ensures builds run for dev/beta tags (tests skipped) while still blocking if tests fail. --- .gitea/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index ba4c297..c45e064 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -78,35 +78,35 @@ jobs: # --- BUILD + RELEASE (dev/beta/release tags) --- build-server-core: - if: "!contains(gitea.ref_name, 'test')" + if: always() && !contains(gitea.ref_name, 'test') && !failure() needs: [server-core-test, device-agent-test, dashboard-test] runs-on: ubuntu-latest uses: ./.gitea/workflows/build_server_core.yaml secrets: inherit build-device-agent: - if: "!contains(gitea.ref_name, 'test')" + if: always() && !contains(gitea.ref_name, 'test') && !failure() needs: [server-core-test, device-agent-test, dashboard-test] runs-on: ubuntu-latest uses: ./.gitea/workflows/build_device_agent.yaml secrets: inherit build-dashboard: - if: "!contains(gitea.ref_name, 'test')" + if: always() && !contains(gitea.ref_name, 'test') && !failure() needs: [server-core-test, device-agent-test, dashboard-test] runs-on: ubuntu-latest uses: ./.gitea/workflows/build_dashboard.yaml secrets: inherit build-docs: - if: "!contains(gitea.ref_name, 'test')" + if: always() && !contains(gitea.ref_name, 'test') && !failure() needs: [server-core-test, device-agent-test, dashboard-test] runs-on: ubuntu-latest uses: ./.gitea/workflows/docs_call.yaml secrets: inherit release: - if: "!contains(gitea.ref_name, 'test')" + if: always() && !contains(gitea.ref_name, 'test') && !failure() needs: [build-server-core, build-device-agent, build-dashboard, build-docs] uses: ./.gitea/workflows/release_call.yaml with: