Skip to content

Commit

Permalink
a fix? 2
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <[email protected]>
  • Loading branch information
andistorm committed Jul 8, 2024
1 parent da16879 commit 81cbeeb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-single-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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.."
Expand All @@ -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
Expand All @@ -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 }}.."
Expand All @@ -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
Expand Down

0 comments on commit 81cbeeb

Please sign in to comment.