Skip to content

Commit

Permalink
prettier action
Browse files Browse the repository at this point in the history
prettier action secret + unpretty code test
  • Loading branch information
jackschedel committed Jan 3, 2024
1 parent 01e79a4 commit e23ee25
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ permissions:

concurrency:
group: build_test
cancel-in-progress: false
cancel-in-progress: true

jobs:
build:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Prettier Autoformat

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --write ./
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ import ApiPopup from '@components/ApiPopup';
import Toast from '@components/Toast';
import isElectron from '@utils/electron';











function App() {
const initialiseNewChat = useInitialiseNewChat();
const setChats = useStore((state) => state.setChats);
Expand Down

0 comments on commit e23ee25

Please sign in to comment.