fix: bypass Gitea 1.26.2 false-failure bug for deploy job

Gitea 1.26.2 reports job conclusion=failure even when all steps succeed,
causing the deploy job (with needs:) to be skipped. Two fixes:
- Add if: always() to deploy job so it runs regardless of test job conclusions
- Fix concurrency: YAML structure (was nested under on: instead of top-level)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-05-22 07:36:53 +08:00
parent 32c2b2b966
commit efaa0da5ed
+4 -1
View File
@@ -5,7 +5,9 @@ on:
paths:
- 'dashboard/**'
- '.gitea/workflows/deploy.yml'
workflow_dispatch:concurrency:
workflow_dispatch:
concurrency:
group: deploy-dashboard-main
cancel-in-progress: true
@@ -169,6 +171,7 @@ jobs:
deploy:
name: Deploy to Production
runs-on: ubuntu-latest
if: always()
needs: [backend-tests, frontend-tests]
env:
SECRET_KEY: test-secret-key-for-ci-environment-32chars-minimum