mirror of
https://github.com/jlengrand/coffeechat.git
synced 2026-03-10 08:11:20 +00:00
34 lines
753 B
YAML
34 lines
753 B
YAML
name: Prettify people.json
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
paths:
|
|
- 'people.json'
|
|
|
|
jobs:
|
|
prettify-json:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout this repository
|
|
uses: actions/checkout@v4.1.0
|
|
with:
|
|
token: ${{ secrets.ACTIONS_TOKEN }}
|
|
|
|
- name: Setting up Node.js
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
node-version: 'v20.12.2'
|
|
|
|
- name: Run prettier
|
|
run: npx prettier --write people.json
|
|
|
|
- name: Commit the changes
|
|
uses: EndBug/add-and-commit@v9.1.4
|
|
with:
|
|
add: 'people.json'
|
|
author_name: 'GitHub Actions'
|
|
author_email: 'actions@github.com'
|
|
message: 'prettify people.json'
|