From eeac61baabc8aadc89fc6c87eb910e0af2a98803 Mon Sep 17 00:00:00 2001 From: meanmail Date: Wed, 20 Sep 2023 13:20:45 +0400 Subject: [PATCH] Update CI: fix 3 --- .github/workflows/actions/build/action.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions/build/action.yml b/.github/workflows/actions/build/action.yml index c1a4690..ed59608 100644 --- a/.github/workflows/actions/build/action.yml +++ b/.github/workflows/actions/build/action.yml @@ -35,12 +35,12 @@ runs: registry: hyperskill.azurecr.io username: ${{ inputs.username }} password: ${{ inputs.password }} - - if: inputs.add_hash + - if: ${{ inputs.add_hash }} run: | - hash=${{ hashFiles(inputs.path + "/**/*.*") }} + hash=$(find ${{ inputs.path }} -type f -print0 | sort -z | xargs -0 sha2sum | sha2sum) echo "hash=-${hash::9}" >> "$GITHUB_ENV" shell: bash - - if: !inputs.add_hash + - if: ${{ !inputs.add_hash }} run: | echo "hash=" >> "$GITHUB_ENV" shell: bash