-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 changed files
with
61 additions
and
6 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,39 @@ | ||
name: format | ||
|
||
on: | ||
push: | ||
branches: [ "master", "main" ] | ||
|
||
jobs: | ||
format-code-on-push: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure Email | ||
run: git config --local user.email ${{ github.event.pusher.email }} | ||
|
||
- name: Configure Name | ||
run: git config --local user.name ${{ github.event.pusher.name }} | ||
|
||
- name: Git Status | ||
run: git status | ||
|
||
- name: Format Code Style | ||
run: npm run format | ||
|
||
- name: Stage Changes | ||
run: git add . | ||
|
||
- name: Save Changes | ||
run: git commit -m ${{ github.event.head_commit.message }}:format | ||
|
||
- name: Push Changes | ||
run: git push --force |
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
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
File renamed without changes.