Add formatting as workflow (and pray it works as intended)

This commit is contained in:
Toby
2024-05-15 10:15:22 +00:00
committed by GitHub
parent 015c430209
commit 29383d49d4
+19
View File
@@ -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