Figma updates #404
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
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 |