Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasoppermann committed Sep 30, 2024
1 parent 6fc551d commit 2fd468c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/getFigmaImages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
- name: Install dependencies
run: npm ci --no-audit --no-fund --include=dev --ignore-scripts
- name: Get Figma Images
run: node scripts/getFigmaImages.js '**/*.mdx'
run: node scripts/getFigmaImages.js '**/*.mdx' > figmaImageNodeUrls.json
- name: Log file content
run: cat figmaImageNodeUrls.json
3 changes: 0 additions & 3 deletions figmaImageNodeUrls.json

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/getFigmaImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const run = async () => {
const pattern = /<img\s+[^>]*src="([^"]+)"[^>]*>/g
// find matches in find
const matches = await findMatches(pattern, files)
// write the matches to a file
await fs.writeFile('figmaImageNodeUrls.json', JSON.stringify(matches, null, 2))
// output result
console.log(JSON.stringify(matches, null, 2))

}

Expand Down

0 comments on commit 2fd468c

Please sign in to comment.