test forgejo actions

This commit is contained in:
2026-05-06 19:56:56 +02:00
parent 960dce8cbf
commit bcf1fc8b45
2 changed files with 29 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Format code with Prettier
on:
push:
branches: ["master"]
jobs:
format:
runs-on: linux
container: node:20-bookworm
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Run Prettier
run: npx prettier --write .
- name: Commit changes (if any)
run: |
git config user.name "forgejo-bot"
git config user.email "forgejo-bot@local"
git add .
git diff --cached --quiet || git commit -m "chore: format with prettier"
git push