diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 9b5b53d..f25ad5d 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -5,8 +5,14 @@ on: - 'v[0-9]+.[0-9]+.[0-9]+' jobs: + changes: + uses: ./.github/workflows/changes.yaml + build-api: + if: ${{ needs.changes.outputs.api == 'true' }} name: build-api + needs: + - changes uses: ./.github/workflows/api_build.yaml with: environment_name: prod @@ -15,7 +21,9 @@ jobs: deploy-api: name: deploy-api - needs: build-api + needs: + - changes + - build-api uses: ./.github/workflows/deploy.yaml with: app_name: flying-api @@ -24,7 +32,10 @@ jobs: secrets: inherit build-app: + if: ${{ needs.changes.outputs.app == 'true' }} name: build-app + needs: + - changes uses: ./.github/workflows/app_build.yaml with: environment_name: prod @@ -33,7 +44,9 @@ jobs: deploy-app: name: deploy-app - needs: build-app + needs: + - changes + - build-app uses: ./.github/workflows/deploy.yaml with: app_name: flying-app