Update Stig's avatar, disable usage of F1's fallback image #11
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: "Tokens Studio for Figma Update" | |
on: | |
push: | |
paths: | |
- 'src/tokens/global.json' | |
branches: | |
- dev | |
workflow_dispatch: | |
jobs: | |
build-token-variables: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js v16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install dependencies | |
run: yarn install | |
- name: Build SCSS file | |
run: yarn run build-tokens | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Update tokens.scss after update of global.json from Figma" | |
file_pattern: 'src/styles/tokens.scss' |