-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 935 Bytes
/
figma.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Figma
on:
workflow_dispatch:
inputs:
file_id:
description: 'Figma file ID'
required: true
figma_token:
description: 'Figma API token'
required: true
style_dictionary_url:
description: 'Style Dictionary URL'
required: true
jobs:
add-collection-to-figma:
# Prevents changesets action from creating a PR on forks
if: github.repository == 'RedHat-UX/red-hat-design-tokens'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: brianferry/[email protected]
with:
api_token: ${{ github.event.inputs.figma_token }}
file_id: ${{ github.event.inputs.file_id }}
style_dictionary_url: ${{ github.event.inputs.style_dictionary_url }}
- name: Archive Figma Tokens Payload
uses: actions/upload-artifact@v2
with:
name: figma-tokens
path: build/