-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github workflow to update tokens
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 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,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 |