Skip to content

Commit

Permalink
ci(previews): run manually to commit on PR (catppuccin#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Oct 27, 2024
1 parent 7b33c50 commit 150f09d
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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'

0 comments on commit 150f09d

Please sign in to comment.