summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-03-05 16:59:09 +0000
committerGitHub <noreply@github.com>2024-03-05 16:59:09 +0000
commit4443fa8a328c8b6fcef9b00017fe673567222168 (patch)
tree0fe232700886956c8780858128cd9b3efb13e075 /.github
parent7836906f3ea7e8f25b4eacbd11f67b8d38745089 (diff)
Attempt to fix changed files on CI workflow (#23205)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/format.yml2
-rw-r--r--.github/workflows/lint.yml12
2 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml
index 81da72046c..df080cfe8c 100644
--- a/.github/workflows/format.yml
+++ b/.github/workflows/format.yml
@@ -36,6 +36,8 @@ jobs:
- name: Get changed files
id: file_changes
uses: tj-actions/changed-files@v42
+ with:
+ use_rest_api: true
- name: Run qmk formatters
shell: 'bash {0}'
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 67823103f1..a008ebb829 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -28,6 +28,8 @@ jobs:
- name: Get changed files
id: file_changes
uses: tj-actions/changed-files@v42
+ with:
+ use_rest_api: true
- name: Print info
run: |
@@ -62,10 +64,12 @@ jobs:
qmk format-text ${{ steps.file_changes.outputs.all_changed_files}} || true
for file in ${{ steps.file_changes.outputs.all_changed_files}}; do
- if ! git diff --quiet $file; then
- echo "File '${file}' Requires Formatting"
- echo "::error file=${file}::Requires Formatting"
- exit_code=$(($exit_code + 1))
+ if [[ -f $file ]]; then
+ if ! git diff --quiet $file; then
+ echo "File '${file}' Requires Formatting"
+ echo "::error file=${file}::Requires Formatting"
+ exit_code=$(($exit_code + 1))
+ fi
fi
done