-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a77e5e1
commit 96b8c2d
Showing
5 changed files
with
3,730 additions
and
3,531 deletions.
There are no files selected for viewing
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
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 |
Oops, something went wrong.