🤖 Sync Liquid Docs Schema (#888) #216
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: Update latest.json when changes pushed to main | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current repo | |
uses: actions/checkout@v2 | |
- name: Write latest sha to latest.json | |
run: | | |
echo -e { \"revision\": \"$(git rev-parse HEAD)\" }\\n > data/latest.json | |
- name: Run git config | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: Commit and push changes | |
run: | | |
git add data/latest.json | |
git commit -m "Update data/latest.json" | |
git push origin main |