File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Update latest.json when changes pushed to main
1+ name : Update 'ai/liquid.mdc' and 'data/ latest.json' files
22
33on :
44 workflow_dispatch :
@@ -12,18 +12,33 @@ jobs:
1212 steps :
1313 - name : Checkout current repo
1414 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
18+ with :
19+ node-version : ' 20'
20+ cache : ' yarn'
21+
1522 - name : Write latest sha to latest.json
1623 run : |
1724 echo -e { \"revision\": \"$(git rev-parse HEAD)\" }\\n > data/latest.json
25+
26+ - name : Install dependencies
27+ run : yarn install --frozen-lockfile
28+
29+ - name : Generate AI file
30+ run : yarn generate:ai
31+
1832 - name : Run git config
1933 run : |
2034 git config user.name "GitHub Actions Bot"
2135 git config user.email "<>"
36+
2237 - name : Commit and push changes
2338 run : |
24- git add data/latest.json
2539 if [[ -n "$(git status --porcelain)" ]]; then
26- git commit -m "Update data/latest.json"
40+ git add .
41+ git commit -m "Update 'ai/liquid.mdc' and 'data/latest.json' files"
2742 git push origin main
2843 else
2944 echo "No changes to commit"
You can’t perform that action at this time.
0 commit comments