From dfcdd9830e305aefe26ff45b7d381d92b1e7a99f Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sat, 2 Aug 2025 21:49:58 +0200 Subject: [PATCH] fix: Add missing step to deploy --- .github/workflows/deploy.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index f1154ba..28e9a24 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -96,6 +96,16 @@ jobs: environment: ${{ matrix.env }} steps: - uses: actions/checkout@v4 + - name: Exit if this environment wasn't changed + id: check + run: | + echo "Changed envs: '${{ needs.fact-finding.outputs.changed_envs }}'" + if [[ ${{ github.event_name }} == 'workflow_dispatch' && "${{ github.event.inputs.deploy }}" == 'true' || "${{ needs.fact-finding.outputs.changed_envs }}" =~ "${{ matrix.env }}" ]]; then + echo "should_deploy=true" >> $GITHUB_OUTPUT + else + echo "should_deploy=false" >> $GITHUB_OUTPUT + fi + shell: bash - name: Copy files to remote if: steps.check.outputs.should_deploy == 'true' uses: burnett01/rsync-deployments@7.0.2