diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 70cdaad..cd04dfe 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -20,15 +20,19 @@ concurrency: group: deploy-${{ github.ref }} cancel-in-progress: true +env: + # commit tagged ? yes->prod : no->dev + AGEBD_ENV: ${{ github.ref_type == 'tag' && 'prod' || 'dev' }} + jobs: define-filters: runs-on: hla-dev outputs: - bin: ${{ needs.define-filters.outputs.bin }} - agebd: ${{ needs.define-filters.outputs.agebd }} - qt: ${{ needs.define-filters.outputs.qt }} - services: ${{ needs.define-filters.outputs.services }} + bin: ${{ steps.filter.outputs.bin }} + agebd: ${{ steps.filter.outputs.agebd }} + qt: ${{ steps.filter.outputs.qt }} + services: ${{ steps.filter.outputs.services }} steps: - name: Checkout repository @@ -53,10 +57,6 @@ jobs: runs-on: hla-dev if: always() - env: - # commit tagged ? yes->prod : no->dev - AGEBD_ENV: ${{ github.ref_type == 'tag' && 'prod' || 'dev' }} - steps: - name: Checkout repository uses: actions/checkout@v4 @@ -120,7 +120,7 @@ jobs: echo "matrix=$SERVICES" >> $GITHUB_OUTPUT deploy-services: - needs: detect-services + needs: detect-changed-services if: ${{ needs.detect-services.outputs.matrix != '[]' }} strategy: fail-fast: false