diff options
author | Peter Johanson <[email protected]> | 2024-01-26 07:53:59 +0000 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2024-01-26 00:26:46 -0800 |
commit | 72d5c01e46c0e0079682bf7536c1da672c244e18 (patch) | |
tree | 5cb9c41a7a84dc57fa67f05df1b632a412203f9c /.github | |
parent | 1f8b45d57ddde21fe6cb917ef72a344cd3071e31 (diff) | |
download | zmk-72d5c01e46c0e0079682bf7536c1da672c244e18.tar.gz zmk-72d5c01e46c0e0079682bf7536c1da672c244e18.zip |
fix(ci): Move to maintained get-changed files.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ecdb5aa18..ca44e61a12 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -409,19 +409,20 @@ jobs: if: ${{ github.event_name != 'schedule' }} runs-on: ubuntu-latest outputs: - changed-files: ${{ steps.changed-files.outputs.all }} + changed-files: ${{ steps.changed-files.outputs.all_changed_files }} board-changes: ${{ steps.board-changes.outputs.result }} core-changes: ${{ steps.core-changes.outputs.result }} steps: - - uses: Ana06/[email protected] + - uses: tj-actions/changed-files@v42 id: changed-files with: - format: "json" + json: true + escape_json: false - uses: actions/github-script@v7 id: board-changes with: script: | - const changedFiles = JSON.parse(`${{ steps.changed-files.outputs.all }}`); + const changedFiles = JSON.parse(`${{ steps.changed-files.outputs.all_changed_files }}`); const boardChanges = changedFiles.filter(f => f.startsWith('app/boards')); return boardChanges.length ? 'true' : 'false'; result-encoding: string @@ -429,7 +430,7 @@ jobs: id: core-changes with: script: | - const changedFiles = JSON.parse(`${{ steps.changed-files.outputs.all }}`); + const changedFiles = JSON.parse(`${{ steps.changed-files.outputs.all_changed_files }}`); const boardChanges = changedFiles.filter(f => f.startsWith('app/boards')); const appChanges = changedFiles.filter(f => f.startsWith('app')); const ymlChanges = changedFiles.includes('.github/workflows/build.yml'); |