Skip to content

Commit

Permalink
feat(workflows): add a build-tokens workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschuerch committed Jul 11, 2024
1 parent 099ac7a commit 019b34c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-tokens.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
types: [opened, synchronize, edited, reopened]
paths:
- 'packages/tokens'
- 'packages/tokens/**'

jobs:
build:
Expand All @@ -27,7 +27,12 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const fs = require('fs')
const input = JSON.parse(fs.readFileSync('packages/tokens/tokenstudio-generated/tokens.json', 'utf8'))
return `# Build Tokens
- Input:
<pre>${JSON.stringify(input, null, 2)}</pre>
`
- name: Output Summary
Expand Down

0 comments on commit 019b34c

Please sign in to comment.