1389: Use CI Repo for standardised steps in github workflows (#54) #22
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: Check Json Order | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- README.md | |
jobs: | |
checkcode: | |
name: Check Code | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.RELEASE_PAT }} | |
- name: Sort Json Files | |
run: | | |
npm -g install sort-json | |
cd sapig-overlay | |
find ./ -name '*.json' -exec sort-json {} \; | |
- name: Commit changes | |
run: | | |
git config user.name fropenbanking | |
git config user.email obst@forgerock.com | |
git add . | |
git commit -m "Automated commit - Sorting json files - [skip ci]" || exit 0 | |
git push |