fix: cicd
This commit is contained in:
@@ -55,7 +55,6 @@ jobs:
|
||||
deploy:
|
||||
needs: define-filters
|
||||
runs-on: hla-dev
|
||||
if: always()
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -101,13 +100,17 @@ jobs:
|
||||
runs-on: hla-dev
|
||||
needs: define-filters
|
||||
if: needs.define-filters.outputs.services == 'true'
|
||||
|
||||
outputs:
|
||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- id: set-matrix
|
||||
|
||||
- name: Generate matrix of changed services
|
||||
id: set-matrix
|
||||
run: |
|
||||
# Fallback if github.event.before is zeroed out (e.g. initial branch push or tag)
|
||||
BEFORE="${{ github.event.before }}"
|
||||
@@ -120,8 +123,9 @@ jobs:
|
||||
echo "matrix=$SERVICES" >> $GITHUB_OUTPUT
|
||||
|
||||
deploy-services:
|
||||
name: "Deploy Service (${{ matrix.service }})"
|
||||
needs: detect-changed-services
|
||||
if: ${{ needs.detect-services.outputs.matrix != '[]' }}
|
||||
if: ${{ needs.detect-changed-services.outputs.matrix != '[]' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
||||
Reference in New Issue
Block a user