Retry condition

This commit is contained in:
Djuri Baars 2023-11-19 16:05:46 +01:00
parent ada12915c5
commit d558e30958

View File

@ -22,14 +22,10 @@ jobs:
echo "Changed files count: ${{ echo "Changed files count: ${{
steps.changed-files.outputs.all_changed_and_modified_files_count }}" steps.changed-files.outputs.all_changed_and_modified_files_count }}"
- name: Fail if less than 2 changes detected
if: steps.changed-files.outputs.all_changed_and_modified_files_count < 2
run: exit 1
build: build:
needs: check-changes needs: check-changes
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ needs.check-changes.result == 'success' }} if: steps.changed-files.outputs.all_changed_and_modified_files_count >= 2
permissions: permissions:
contents: write contents: write