forked from catppuccin/vscode-icons
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(previews): run manually to commit on PR (catppuccin#345)
- Loading branch information
Showing
1 changed file
with
8 additions
and
23 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 |
---|---|---|
|
@@ -2,13 +2,6 @@ name: Generate Previews | |
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
paths: | ||
- 'icons/**' | ||
- scripts/icons/preview.ts | ||
- scripts/catwalk.ts | ||
tags-ignore: [v*] | ||
|
||
jobs: | ||
generate-previews: | ||
|
@@ -17,6 +10,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
@@ -32,24 +27,14 @@ jobs: | |
- name: Generate Flavor Previews | ||
run: pnpm icons:preview | ||
|
||
- name: Install catppuccin/catwalk | ||
shell: bash | ||
run: | | ||
mkdir /tmp/catwalk | ||
cd /tmp/catwalk | ||
curl -LSs https://github.com/catppuccin/catwalk/releases/download/v1.3.2/catwalk-aarch64-apple-darwin -o catwalk | ||
chmod +x catwalk | ||
echo $(pwd) >> $GITHUB_PATH | ||
- name: Setup catppuccin/catwalk | ||
uses: catppuccin/[email protected] | ||
|
||
- name: Generate Catwalk Preview | ||
run: pnpm catwalk | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
- name: Commit | ||
uses: stefanzweifel/[email protected] | ||
with: | ||
title: 'chore: re-generate previews' | ||
commit-message: 'chore: re-generate previews' | ||
branch: chore/re-generate-previews | ||
delete-branch: true | ||
add-paths: | | ||
assets/* | ||
file_pattern: 'assets/*' | ||
commit_message: 'chore: regenerate previews' |