diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb1eabf..42e3613 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,23 +26,23 @@ jobs: - name: Get changed files id: changed-files if: ${{ github.event_name != 'workflow_dispatch' }} - uses: jitterbit/get-changed-files@v1 + uses: rlespinasse/github-slug-action@v4 - id: filter_changed_files if: ${{ steps.changed-files.conclusion == 'success'}} uses: actions/github-script@0.9.0 with: script: | - var changed_files = '${{steps.changed-files.outputs.all}}'.replace(/(?<= |^)content(?= |$)/, "").replace(/(?<= |^)static(?= |$)/, "").trim() + var changed_files = '${{steps.changed-files.outputs.all_changed_files}}'.replace(/(?<= |^)content(?= |$)/, "").replace(/(?<= |^)static(?= |$)/, "").trim() console.log(changed_files, changed_files.length) core.setOutput('count', changed_files.length.toString()) - name: Update submodules id: update_submods - if: ${{ steps.changed-files.conclusion == 'skipped' || (!contains(steps.changed-files.outputs.all, 'content'))}} + if: ${{ steps.changed-files.conclusion == 'skipped' || (!contains(steps.changed-files.outputs.all_changed_files, 'content'))}} run: | set -o xtrace - echo "=====${{ steps.changed-files.outputs.all}}======" - echo "=====${{ steps.changed-files.outputs.all}}======" + echo "=====${{ steps.changed-files.outputs.all_changed_files}}======" + echo "=====${{ steps.changed-files.outputs.all_changed_files}}======" git submodule update --init --recursive git submodule update --remote --merge --recursive - name: Setup Hugo