mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-22 02:25:41 +00:00
Add formatting as workflow (and pray it works as intended)
This commit is contained in:
@@ -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