ci: auto bump changed userstyles on pr merge (#1535)
This commit is contained in:
1 parent
fb505120bd
commit
ab27cffd88
1 file changed
+16
-6
@@ -1,4 +1,4 @@
|
|||||||
name: Generate Health Files & Format
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@@ -9,8 +9,7 @@ env:
|
|||||||
HAS_USERSTYLES_TOKEN: ${{ secrets.USERSTYLES_TOKEN != '' }}
|
HAS_USERSTYLES_TOKEN: ${{ secrets.USERSTYLES_TOKEN != '' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate-health-files-and-format:
|
ci:
|
||||||
name: Generate health files & format
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||||
@@ -33,13 +32,24 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
deno-version: v2.1.3
|
deno-version: v2.1.3
|
||||||
|
|
||||||
- name: Generate health files
|
- name: Bump changed userstyles
|
||||||
|
run: |
|
||||||
|
git diff --name-only HEAD^1 HEAD | grep '^styles/.*catppuccin\.user\.css$' | xargs deno task bump
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
message: "chore: bump changed userstyles"
|
||||||
|
default_author: github_actions
|
||||||
|
push: false
|
||||||
|
|
||||||
|
- name: Update generated files
|
||||||
run: deno task generate
|
run: deno task generate
|
||||||
|
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: EndBug/add-and-commit@v9
|
uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
message: "chore: generate health files"
|
message: "chore: update generated files"
|
||||||
default_author: github_actions
|
default_author: github_actions
|
||||||
push: false
|
push: false
|
||||||
|
|
||||||
@@ -49,7 +59,7 @@ jobs:
|
|||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: EndBug/add-and-commit@v9
|
uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
message: "style: format code with prettier"
|
message: "style: format with prettier"
|
||||||
default_author: github_actions
|
default_author: github_actions
|
||||||
push: false
|
push: false
|
||||||
|
|
||||||
Reference in new issue
Block a user