-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.09 KB
/
apply-desktop-styles.yaml
File metadata and controls
36 lines (34 loc) · 1.09 KB
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
33
34
35
36
name: 'Central tokens to desktop styles'
on:
workflow_dispatch:
inputs:
figmaUrl:
type: 'string'
description: '"Desktop Styles" branch or file URL'
required: true
dryRun:
type: 'boolean'
description: 'Do not apply changes'
default: false
jobs:
checks:
runs-on: 'ubuntu-latest'
environment: 'Actions'
name: 'Run figma variable script'
steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Install dependencies
run: npm ci --production
- name: 'Run DESKTOP_STYLES job'
uses: './dist'
with:
FIGMA_URL_DESKTOP_STYLES: '${{ github.event.inputs.figmaUrl }}'
FIGMA_ACCESS_TOKEN: '${{ secrets.FIGMA_ACCESS_TOKEN }}'
SLACK_WEBHOOK_FAILURE: '${{ secrets.SLACK_WEBHOOK_FAILURE }}'
ONLY_RUN_JOBS: 'DESKTOP_STYLES'
DRY_RUN: '${{ github.event.inputs.dryRun }}'