Update people.json #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setting up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 'v20.12.2' | |
- name: Run prettier | |
run: npx prettier --write people.json | |
- name: Commit the changes | |
uses: EndBug/[email protected] | |
with: | |
add: 'people.json' | |
author_name: 'GitHub Actions' | |
author_email: '[email protected]' | |
message: 'prettify people.json' |