mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-05-20 10:24:51 +00:00
648e239d0b
Co-authored-by: William Harrison <william@williamdavidharrison.com.au>
19 lines
393 B
YAML
19 lines
393 B
YAML
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
|