Skip to content

Commit 26be961

Browse files
committed
change workflow on chart name change
1 parent 6cff33c commit 26be961

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
id: graph_name
6363
shell: bash
6464
run: |
65-
name=$(node -e "const fs=require('fs'); const src=fs.readFileSync('./src/dotplot/metadata.js','utf8'); const m=src.match(/name:\s*['\"]([^'\"]+)['\"]/); if(!m){process.exit(1)}; console.log(m[1])")
65+
name=$(node -e "const fs=require('fs'); const src=fs.readFileSync('./src/dumbbell/metadata.js','utf8'); const m=src.match(/name:\s*['\"]([^'\"]+)['\"]/); if(!m){process.exit(1)}; console.log(m[1])")
6666
slug=$(echo "$name" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-+//; s/-+$//')
6767
echo "name=$name" >> "$GITHUB_OUTPUT"
6868
echo "slug=$slug" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)