ci: fix release workflow ordering and remove redundant workflows (#135)
- Tag builds now also set 'latest' Docker tag (fixes race condition where main-push build could overwrite latest with older version) - Remove duplicate release.yml (create-release job in docker-build.yml already handles GitHub releases) - Remove redundant version-bump.yml (release.sh already bumps versions in the release PR) - Change update-test-badges.yml trigger to workflow_run after successful docker-build (prevents parallel execution and ensures correct ordering) - Update agent instructions and CI documentation to reflect changes
This commit is contained in:
@@ -2,13 +2,10 @@ name: Update Test Badges
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: ["Build and Push Docker Images"]
|
||||
types: [completed]
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'backend/src/**'
|
||||
- 'frontend/src/**'
|
||||
- 'backend/package.json'
|
||||
- 'frontend/package.json'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -17,6 +14,8 @@ jobs:
|
||||
update-badges:
|
||||
name: Update Test Count Badges
|
||||
runs-on: ubuntu-latest
|
||||
# Only run after successful docker builds, not failed ones
|
||||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
Reference in New Issue
Block a user