Skip to content

Commit 3f3147c

Browse files
committed
Break out steps in refresh_static.yml
1 parent ecca64e commit 3f3147c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/refresh_static.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ jobs:
2727

2828
- name: Run refresh-static.ts
2929
id: refresh-downstream-script
30+
run: npm run refresh-static
31+
32+
- name: check for diff
33+
if: steps.refresh-downstream-script.outcome == 'successs'
34+
id: check-for-diff
3035
run: |
31-
npm run refresh-static
3236
git diff --compact-summary
3337
if [[ -n "$(git diff)" ]]; then
3438
echo "changes-available=TRUE" >> $GITHUB_OUTPUT
@@ -37,7 +41,7 @@ jobs:
3741
fi
3842
3943
- name: Push changes to main
40-
if: steps.refresh-downstream-script.outputs.changes-available == 'TRUE'
44+
if: steps.check-for-diff.outputs.changes-available == 'TRUE'
4145
id: push-to-main
4246
run: |
4347
echo "changes have occurred, committing to main"

scripts/refresh-static.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,5 @@ writeFileSync(
102102
}).toString(),
103103
{ encoding: "utf-8" },
104104
);
105+
106+
console.log("finished running refresh-static")

0 commit comments

Comments
 (0)