Update files changed action (#19172)
This commit is contained in:
parent
4ae7525923
commit
393a37c012
|
@ -27,16 +27,14 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip3 install -r requirements-dev.txt
|
pip3 install -r requirements-dev.txt
|
||||||
|
|
||||||
- uses: trilom/file-changes-action@v1.2.4
|
- name: Get changed files
|
||||||
id: file_changes
|
id: file_changes
|
||||||
with:
|
uses: tj-actions/changed-files@v34
|
||||||
output: ' '
|
|
||||||
fileOutput: ' '
|
|
||||||
|
|
||||||
- name: Run qmk formatters
|
- name: Run qmk formatters
|
||||||
shell: 'bash {0}'
|
shell: 'bash {0}'
|
||||||
run: |
|
run: |
|
||||||
cat ~/files_added.txt ~/files_modified.txt > ~/files_changed.txt
|
echo '${{ steps.file_changes.outputs.added_files}}' '${{ steps.file_changes.outputs.modified_files}}' > ~/files_changed.txt
|
||||||
qmk format-c --core-only $(< ~/files_changed.txt) || true
|
qmk format-c --core-only $(< ~/files_changed.txt) || true
|
||||||
qmk format-python $(< ~/files_changed.txt) || true
|
qmk format-python $(< ~/files_changed.txt) || true
|
||||||
qmk format-text $(< ~/files_changed.txt) || true
|
qmk format-text $(< ~/files_changed.txt) || true
|
||||||
|
|
|
@ -19,21 +19,20 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip3 install -r requirements-dev.txt
|
run: pip3 install -r requirements-dev.txt
|
||||||
|
|
||||||
- uses: trilom/file-changes-action@v1.2.4
|
- name: Get changed files
|
||||||
id: file_changes
|
id: file_changes
|
||||||
with:
|
uses: tj-actions/changed-files@v34
|
||||||
output: '\n'
|
|
||||||
|
|
||||||
- name: Print info
|
- name: Print info
|
||||||
run: |
|
run: |
|
||||||
git rev-parse --short HEAD
|
git rev-parse --short HEAD
|
||||||
echo ${{ github.event.pull_request.base.sha }}
|
echo ${{ github.event.pull_request.base.sha }}
|
||||||
echo '${{ steps.file_changes.outputs.files}}'
|
echo '${{ steps.file_changes.outputs.all_changed_files}}'
|
||||||
|
|
||||||
- name: Run qmk lint
|
- name: Run qmk lint
|
||||||
shell: 'bash {0}'
|
shell: 'bash {0}'
|
||||||
run: |
|
run: |
|
||||||
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.files}}')
|
QMK_CHANGES=$(echo -e '${{ steps.file_changes.outputs.all_changed_files}}' | sed 's/ /\n/g')
|
||||||
QMK_KEYBOARDS=$(qmk list-keyboards)
|
QMK_KEYBOARDS=$(qmk list-keyboards)
|
||||||
|
|
||||||
exit_code=0
|
exit_code=0
|
||||||
|
|
Loading…
Reference in New Issue