Skip to content

Commit

Permalink
ci: add workflow for automatic palette updates (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardspy authored Feb 13, 2024
1 parent c4190c5 commit 3848135
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/palette.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Palette

on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run every day at midnight UTC

jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Make changes to pull request
run: curl -Lo src/palette.json 'https://raw.githubusercontent.com/catppuccin/palette/main/palette.json'

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'feat: auto-sync upstream palettes'
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: new-palettes
delete-branch: true
title: 'feat: auto-sync upstream palettes'
body: |
Auto-update `src/palette.json` based on https://github.com/catppuccin/palette/blob/main/palette.json

0 comments on commit 3848135

Please sign in to comment.