forked from VKCOM/vkui-tokens
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1 KB
/
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
33
34
35
36
name: 'Figma updates'
on:
schedule:
- cron: '0 10 * * *' # every day at 10:00
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: yarn install
- name: Figma styles VK to json
uses: VKCOM/gh-actions/vkui-tokens/token-base@main
with:
token: ${{ secrets.FIGMA_TOKEN }}
file_key: ${{ secrets.FIGMA_VK_FILE_KEY }}
output_file_name: src/themeDescriptions/base/figma/vk.json
- run: yarn test -u
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
title: Figma updates
branch: github-actions/build/figma/token-updates
commit-message: 'build(figma): token updates'
body: Automated figma updates
labels: dependencies, figma