From 81cbeeb29f7ae13b21810b5b24794064242c76f9 Mon Sep 17 00:00:00 2001 From: Andreas Heinrich Date: Mon, 8 Jul 2024 15:27:19 +0200 Subject: [PATCH] a fix? 2 Signed-off-by: Andreas Heinrich --- .github/workflows/deploy-single-docker-image.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-single-docker-image.yml b/.github/workflows/deploy-single-docker-image.yml index bd4e5f1..fb3420f 100644 --- a/.github/workflows/deploy-single-docker-image.yml +++ b/.github/workflows/deploy-single-docker-image.yml @@ -58,13 +58,13 @@ on: jobs: check: - if: ${{ inputs.force_rebuild == false }} name: Check for changes outputs: rebuild: ${{ steps.set-outputs.outputs.rebuild }} runs-on: ubuntu-22.04 steps: - name: Checkout Dockerfile + if: ${{ inputs.force_rebuild == false }} uses: actions/checkout@v3 with: repository: ${{ github.repository }} @@ -73,6 +73,7 @@ jobs: token: ${{secrets.SA_GITHUB_PAT}} fetch-depth: 0 - name: Validate github_ref_before and github_ref_after + if: ${{ inputs.force_rebuild == false }} id: validate-inputs run: | echo "Check validity of github_ref_before.." @@ -94,7 +95,7 @@ jobs: echo "validation_failed=false" >> $GITHUB_OUTPUT working-directory: source - name: Parse depends_on_paths - if: steps.validate-inputs.outputs.validation_failed == 'false' + if: ${{ inputs.force_rebuild == false && steps.validate-inputs.outputs.validation_failed == 'false' }} id: setup-regex shell: python3 {0} working-directory: source @@ -119,7 +120,7 @@ jobs: f.write(f"regex={regex}\n") print(f"Set regex={regex}") - name: Get changed files - if: steps.validate-inputs.outputs.validation_failed == 'false' + if: ${{ inputs.force_rebuild == false && steps.validate-inputs.outputs.validation_failed == 'false' }} id: check run: | echo "Checking for changes in paths ${{ steps.setup-regex.outputs.regex }}.." @@ -135,6 +136,7 @@ jobs: fi working-directory: source - name: Set outputs + if: ${{ inputs.force_rebuild == false }} id: set-outputs run: | echo "rebuild=${{ steps.check.outputs.changes_detected == 'true' || steps.validate-inputs.outputs.validation_failed == 'true' }}" >> $GITHUB_OUTPUT