forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
29 deletions.
There are no files selected for viewing
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
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" |
This file was deleted.
Oops, something went wrong.