dl.emersa.it/.forgejo/workflows/ci.yaml
0d0 749192667b
Some checks failed
Just some continuos integration / ci (push) Failing after 21s
Update ci
2025-04-22 23:56:16 +02:00

30 lines
809 B
YAML

name: Just some continuos integration
on: [push]
jobs:
ci:
runs-on: docker
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.FORGEJO_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Format things if needed
run: |
npm install
npm run prepare
npm run lint
npm run format
git config --global user.name "forgejo-bot"
git config --global user.email "bot@pweapon.org"
git add --all || exit 0
git commit -m "chore: lint and format" || exit 0
git push origin HEAD:${GITHUB_REF#refs/heads/}
env:
GITHUB_TOKEN: ${{ secrets.FORGEJO_TOKEN }}