style: simplify formatting with deno, part 2: JSON #74
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: autofix.ci # needed to securely identify the workflow | |
on: | |
pull_request: | |
paths: ["**.json", "**.cpp", "**.hpp", "**.h", "**.c"] | |
permissions: | |
contents: read | |
jobs: | |
autofix: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: format markdown and JSON files | |
run: deno fmt | |
- run: sudo apt-get install astyle | |
- name: format C++ files | |
run: make astyle | |
- uses: autofix-ci/action@8caa572fd27b0019a65e4c695447089c8d3138b9 | |
if: ${{ always() }} | |
with: | |
commit-message: "style(autofix.ci): automated formatting" |