Skip to content

Commit 5bcdb17

Browse files
committed
Merge GitHub workflows to reduce commits
1 parent 4820b44 commit 5bcdb17

File tree

2 files changed

+18
-44
lines changed

2 files changed

+18
-44
lines changed

.github/workflows/update-latest-ai-file.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/update-latest.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update latest.json when changes pushed to main
1+
name: Update 'ai/liquid.mdc' and 'data/latest.json' files
22

33
on:
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"

0 commit comments

Comments
 (0)