Update LIGO Grammars #722
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 LIGO Grammars | |
on: | |
schedule: | |
# Runs every day at 3am EST (which is 8am UTC) | |
- cron: '0 8 * * *' | |
push: | |
branches: | |
- main | |
jobs: | |
update-grammar: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Taqueria | |
uses: actions/checkout@v2 | |
with: | |
path: taqueria | |
- name: Clone LIGO from GitLab | |
run: git clone https://gitlab.com/ligolang/ligo.git ligo | |
- name: Copy grammar files | |
run: cp ligo/tools/ligo-syntax-highlighting/textmate/* taqueria/taqueria-vscode-extension/syntaxes/ligo/ | |
- name: Check git status and commit if needed | |
run: | | |
cd taqueria | |
if [[ $(git status -s) ]]; then | |
git config user.email "[email protected]" | |
git config user.name "Michael Weichert" | |
git add -A | |
git commit -m "Updated LIGO grammars to the latest version" | |
git push | |
else | |
echo "No changes to commit" | |
fi |