Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(ci): create Star History output directory (#155)

tt-a1i49a7821d194a
diff --git a/.github/workflows/star-history.yml b/.github/workflows/star-history.yml
index 470af678..a4755c0f 100644
--- a/.github/workflows/star-history.yml
+++ b/.github/workflows/star-history.yml
@@ -17,6 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
+ - name: Prepare chart output directory
+ run: mkdir -p assets
- uses: xpzouying/star-history@8b1f26dc5e9a17caa75da9351b688509ef312811 # v1
with:
commit: 'false'
diff --git a/archify/test/readme-showcase.test.mjs b/archify/test/readme-showcase.test.mjs
index a13959d8..a7ab22f0 100644
--- a/archify/test/readme-showcase.test.mjs
+++ b/archify/test/readme-showcase.test.mjs
@@ -232,6 +232,10 @@ test('all README languages end with the self-hosted star history chart', () => {
assert.match(workflow, /commit: ['"]false['"]/);
assert.match(workflow, /bash scripts\/publish-star-history\.sh star-history/);
assert.doesNotMatch(workflow, /branch: star-history/);
+ const prepareOutputIndex = workflow.indexOf('run: mkdir -p assets');
+ const generateChartIndex = workflow.indexOf('uses: xpzouying/star-history@');
+ assert.ok(prepareOutputIndex >= 0, 'Star History workflow must create the chart output directory');
+ assert.ok(prepareOutputIndex < generateChartIndex, 'Star History output directory must exist before generation');
});
test('Star History publishing advances the data branch without a force push', () => {