mirror of
https://github.com/RGBCube/color.v
synced 2025-08-01 10:27:45 +00:00
Add format workflow & break some formatting
This commit is contained in:
parent
2be7e9c5ba
commit
b70e1bf34a
2 changed files with 32 additions and 2 deletions
30
.github/workflows/format.yml
vendored
Normal file
30
.github/workflows/format.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
name: Format Code
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set Up V
|
||||
uses: vlang/setup-v@v1.1
|
||||
with:
|
||||
check-latest: true
|
||||
|
||||
- name: Format Code
|
||||
run: v fmt -w .
|
||||
|
||||
- name: Push To GitHub
|
||||
continue-on-error: true
|
||||
run: |
|
||||
git pull
|
||||
git add ./
|
||||
git commit --amend
|
||||
git push
|
Loading…
Add table
Add a link
Reference in a new issue