Skip to content

Commit

Permalink
ci: use autofix.ci
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Sep 1, 2023
1 parent 2d75e1b commit c14255e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Format

on:
pull_request_target:
paths: ["**.json", "**.cpp", "**.hpp", "**.h", "**.c"]

jobs:
autofix:
runs-on: ubuntu-22.04
permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
# Checkout the fork/head-repository and push changes to the fork.
# If you skip this, the base repository will be checked out and changes
# will be committed to the base repository!
repository: ${{ github.event.pull_request.head.repo.full_name }}

# Checkout the branch made in the fork. Will automatically push changes
# back to this branch.
ref: ${{ github.head_ref }}

- name: astyle
run: |
sudo apt-get install astyle
make astyle
- name: json formatting
run: make style-all-json-parallel RELEASE=1

- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ always() }}
with:
commit_message: "style(autofix.ci): format code"
29 changes: 0 additions & 29 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit c14255e

Please sign in to comment.