Fix outputs

This commit is contained in:
Djuri Baars 2023-11-19 16:09:04 +01:00
parent d558e30958
commit 654d97df9f

View File

@ -8,7 +8,8 @@ env:
jobs: jobs:
check-changes: check-changes:
runs-on: ubuntu-latest 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: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -20,12 +21,12 @@ jobs:
- name: Print changed files count - name: Print changed files count
run: > run: >
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 }}"
build: build:
needs: check-changes needs: check-changes
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: steps.changed-files.outputs.all_changed_and_modified_files_count >= 2 if: ${{ needs.check-changes.outputs >= 2 }}
permissions: permissions:
contents: write contents: write