-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f90e893
commit 36fc8d3
Showing
3 changed files
with
35 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Reusable workflow for importing Figma variables | ||
description: Imports Figma variables using our @sit-onyx/figma-utils CLI | ||
|
||
inputs: | ||
modes: | ||
required: true | ||
description: Modes to import | ||
selector: | ||
required: true | ||
description: CSS selector for the resulting CSS file | ||
output-directory: | ||
required: true | ||
description: Directory to write the output files to | ||
format: | ||
default: CSS | ||
description: File formats to generate | ||
file-prefix: | ||
default: "" | ||
description: File prefix | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: | | ||
pnpm run @sit-onyx/figma-utils import-variables -k "${{ vars.FIGMA_FILE_KEY }}" -t "${{ secrets.FIGMA_TOKEN }}" -d "${{ inputs.output-directory }}" -m ${{ inputs.modes }} -f ${{ inputs.format }} -s "${{ inputs.selector }}" -n "${{ inputs.file-prefix }}" | ||
shell: bash | ||
working-directory: packages/figma-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.