From 654d97df9faa54083a068336b18dab4e9825d1f4 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 19 Nov 2023 16:09:04 +0100 Subject: [PATCH] Fix outputs --- .github/workflows/workflow.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index bb1347b..31a46b9 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -8,7 +8,8 @@ env: jobs: check-changes: runs-on: ubuntu-latest - continue-on-error: true + outputs: + all_changed_and_modified_files_count: ${{ steps.changed-files.outputs.all_changed_and_modified_files_count }} steps: - name: Checkout code uses: actions/checkout@v2 @@ -20,12 +21,12 @@ jobs: - name: Print changed files count run: > echo "Changed files count: ${{ - steps.changed-files.outputs.all_changed_and_modified_files_count }}" + steps.changed-files.outputs.all_changed_and_modified_files_count }}" build: needs: check-changes runs-on: ubuntu-latest - if: steps.changed-files.outputs.all_changed_and_modified_files_count >= 2 + if: ${{ needs.check-changes.outputs >= 2 }} permissions: contents: write