Skip to content

Commit 42e653c

Browse files
committed
Add branch option to Figma action
1 parent 1c68f82 commit 42e653c

File tree

2 files changed

+173
-168
lines changed

2 files changed

+173
-168
lines changed

.github/workflows/sync-figma-to-tokens.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ on:
55
file_key:
66
description: 'The file key of the Figma file to be updated'
77
required: true
8-
8+
branch:
9+
type: choice
10+
description: Which branch to update
11+
options:
12+
- design-tokens-alpha
13+
- design-tokens
914
jobs:
1015
sync-figma-to-tokens:
1116
runs-on: ubuntu-latest
@@ -40,5 +45,5 @@ jobs:
4045
commit-message: Update tokens from Figma
4146
title: Update tokens from Figma
4247
body: 'Update tokens from Figma from file: https://www.figma.com/file/${{ github.event.inputs.file_key }}'
43-
base: design-tokens
48+
base: ${{ github.event.inputs.branch }}
4449
branch: update-tokens

0 commit comments

Comments
 (0)