File tree Expand file tree Collapse file tree 2 files changed +18
-44
lines changed Expand file tree Collapse file tree 2 files changed +18
-44
lines changed 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
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -12,18 +12,33 @@ jobs:
12
12
steps :
13
13
- name : Checkout current repo
14
14
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
+
15
22
- name : Write latest sha to latest.json
16
23
run : |
17
24
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
+
18
32
- name : Run git config
19
33
run : |
20
34
git config user.name "GitHub Actions Bot"
21
35
git config user.email "<>"
36
+
22
37
- name : Commit and push changes
23
38
run : |
24
- git add data/latest.json
25
39
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"
27
42
git push origin main
28
43
else
29
44
echo "No changes to commit"
You can’t perform that action at this time.
0 commit comments