[GitHub Actions] Use gh cli to find modified files for PR.

This commit is contained in:
Corneil du Plessis
2022-12-01 11:01:41 +02:00
parent 0c78c98439
commit 26524e1900

View File

@@ -73,9 +73,6 @@ jobs:
exit $RC
fi
echo "::notice ::core build completed"
- name: 'Configure: get changed files'
id: changed-files
uses: tj-actions/changed-files@v34
- name: 'Action: verify changed modules'
shell: bash
env:
@@ -83,7 +80,10 @@ jobs:
run: |
BUILD_DIR=$(realpath $MAIN_PATH)
$BUILD_DIR/create-matrices.sh
$BUILD_DIR/scripts/determine-modules-changed.sh "${{ steps.changed-files.outputs.all_changed_files }}"
echo "Changed files:"
gh pr diff --name-only
CHANGED=$(gh pr diff --name-only)
$BUILD_DIR/scripts/determine-modules-changed.sh "$CHANGED"
MODULES=$(jq '.[]' modules.json | sed 's/\"//g')
FOLDERS=
for module in $MODULES; do