Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
Updated format CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng-alvin committed Aug 6, 2023
1 parent 1eafd93 commit e5ca83e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Format Code
on:
push:
branches:
- main # Change this to your main branch name
- main # Change this to your main branch name
pull_request:
branches:
- main # Change this to your main branch name
- main # Change this to your main branch name

jobs:
format:
Expand All @@ -24,8 +24,8 @@ jobs:

- name: Commit formatted code
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git config --local user.email "cheng-alvin@users.noreply.github.com"
git config --local user.name "Alvin cheng"
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "Format code with Prettier"
git push

0 comments on commit e5ca83e

Please sign in to comment.