Skip to content

Commit

Permalink
add github workflow to update tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Mar 5, 2024
1 parent 70f5cd6 commit 5350a39
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/update-tokens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update tokens

on: workflow_dispatch

env:
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}
PRIMITIVE_TOKENS_FILE_KEY: ${{ secrets.TOKENS__PRIMITIVE_TOKENS_FILE_KEY }}
ADMIN_TOKENS_FILE_KEY: ${{ secrets.TOKENS__ADMIN_TOKENS_FILE_KEY }}

jobs:
update:
name: Update icons
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline

- name: Update tokens
run: pnpm --filter @shopware-ag/meteor-tokens run start

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update icons
committer: Dennis Mader <${{ secrets.ICON_KIT__COMMITTER }}>
author: Dennis Mader <${{ secrets.ICON_KIT__COMMITTER }}>
branch: update-icons
delete-branch: true
branch-suffix: timestamp
title: Update icons
assignees: Weltraumakustik

0 comments on commit 5350a39

Please sign in to comment.