d9f68c42c5
Current error: ``` 1s Run trilom/file-changes-action@v1.2.4 /usr/bin/docker exec e94fda2c6b79f2a3fda6ad3973fb2452092507da89442d782b39afc8b41f24a4 sh -c "cat /etc/*release | grep ^ID" Warning: Received event from pull_request, but also received a before(50eff5af7d
) or after(8bd0db74a7
) value. I am assuming you want to use a Push event but forgot something, so I'm giving you a message. Error: undefined Exception: { "error": "403/Unknown Error:HttpError", "from": "undefined/Error", "message": "There was an error getting change files for repo:qmk_firmware owner:FrameworkComputer pr:1", "payload": "Resource not accessible by integration" } (node:128) UnhandledPromiseRejectionWarning: Error: {"error":"403/Unknown Error:HttpError","from":"undefined/Error","message":"There was an error getting change files for repo:qmk_firmware owner:FrameworkComputer pr:1","payload":"Resource not accessible by integration"} at run (/__w/_actions/trilom/file-changes-action/v1.2.4/dist/index.js:1:19989) at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:128) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:128) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. ``` Signed-off-by: Daniel Schaefer <dhs@frame.work>
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
name: PR Lint Format
|
|
|
|
#permissions:
|
|
# contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'drivers/**'
|
|
- 'lib/arm_atsam/**'
|
|
- 'lib/lib8tion/**'
|
|
- 'lib/python/**'
|
|
- 'platforms/**'
|
|
- 'quantum/**'
|
|
- 'tests/**'
|
|
- 'tmk_core/**'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
container: qmkfm/qmk_cli
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip3 install -r requirements-dev.txt
|
|
|
|
- uses: trilom/file-changes-action@v1.2.4
|
|
id: file_changes
|
|
with:
|
|
output: ' '
|
|
fileOutput: ' '
|
|
|
|
- name: Run qmk formatters
|
|
shell: 'bash {0}'
|
|
run: |
|
|
cat ~/files_added.txt ~/files_modified.txt > ~/files_changed.txt
|
|
qmk format-c --core-only $(< ~/files_changed.txt) || true
|
|
#qmk format-python $(< ~/files_changed.txt) || true
|
|
qmk format-text $(< ~/files_changed.txt) || true
|
|
|
|
- name: Fail when formatting required
|
|
run: |
|
|
git diff
|
|
for file in $(git diff --name-only); do
|
|
echo "File '${file}' Requires Formatting"
|
|
echo "::error file=${file}::Requires Formatting"
|
|
done
|
|
test -z "$(git diff --name-only)"
|