Skip to content

Commit

Permalink
Merge pull request #536 from VKCOM/SevereCloud/feat/vk/automated-figm…
Browse files Browse the repository at this point in the history
…a-updates

feat(vk): automated figma updates
  • Loading branch information
Sarafa2n authored Jul 28, 2023
2 parents a1e9444 + 96b8c2d commit 55586f7
Show file tree
Hide file tree
Showing 5 changed files with 3,730 additions and 3,531 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/figma.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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@v3
- uses: actions/setup-node@v3
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@v5
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
Loading

0 comments on commit 55586f7

Please sign in to comment.