mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-18 20:14:50 +00:00
Add formatting as workflow (and pray it works as intended)
This commit is contained in:
1 file changed
+19
@@ -0,0 +1,19 @@
|
|||||||
|
name: 'File Formatting with Prettier'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
schedule:
|
||||||
|
- cron: '00 8 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
if: github.repository == 'is-a-dev/register'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions: [read-all, write-all]
|
||||||
|
steps:
|
||||||
|
run: npx prettier domains/* --check
|
||||||
|
if github.working-directory == 'domains/':
|
||||||
|
run: npx prettier domains/* --write
|
||||||
|
|
||||||
Reference in new issue
Block a user