2022-11-14 03:05:50 +00:00
|
|
|
name: Build Theme
|
|
|
|
|
2022-11-14 03:14:04 +00:00
|
|
|
on: [pull_request_target]
|
2022-11-14 03:05:50 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2022-11-14 03:53:00 +00:00
|
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
2022-11-14 03:05:50 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-09 23:20:00 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-11-14 03:58:36 +00:00
|
|
|
with:
|
|
|
|
ref: "${{ github.head_ref }}"
|
2022-11-14 03:05:50 +00:00
|
|
|
- name: Install dependencies and Build Theme
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
- run: npm install
|
2022-11-14 03:40:19 +00:00
|
|
|
- run: npm run assets
|
|
|
|
- name: Commit and push Chart.js changes
|
2023-10-07 22:44:06 +00:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-14 03:40:19 +00:00
|
|
|
with:
|
|
|
|
branch: "${{ github.head_ref }}"
|
|
|
|
push_options: "--dry-run"
|
|
|
|
file_pattern: "assets/lib/chart/*"
|
|
|
|
commit_message: "📦 Update packaged ChartJS"
|
|
|
|
- name: Commit Fuse changes
|
2023-10-07 22:44:06 +00:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-14 03:40:19 +00:00
|
|
|
with:
|
|
|
|
branch: "${{ github.head_ref }}"
|
|
|
|
push_options: "--dry-run"
|
|
|
|
file_pattern: "assets/lib/fuse/*"
|
|
|
|
commit_message: "📦 Update packaged FuseJS"
|
|
|
|
- name: Commit KaTeX changes
|
2023-10-07 22:44:06 +00:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-14 03:40:19 +00:00
|
|
|
with:
|
|
|
|
branch: "${{ github.head_ref }}"
|
|
|
|
push_options: "--dry-run"
|
|
|
|
file_pattern: "assets/lib/katex/*"
|
|
|
|
commit_message: "📦 Update packaged KaTeX"
|
|
|
|
- name: Commit Mermaid changes
|
2023-10-07 22:44:06 +00:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-14 03:40:19 +00:00
|
|
|
with:
|
|
|
|
branch: "${{ github.head_ref }}"
|
|
|
|
push_options: "--dry-run"
|
|
|
|
file_pattern: "assets/lib/mermaid/*"
|
|
|
|
commit_message: "📦 Update packaged Mermaid"
|
2022-11-14 03:05:50 +00:00
|
|
|
- run: npm run build
|
2022-11-14 03:40:19 +00:00
|
|
|
- name: Commit CSS changes
|
2023-10-07 22:44:06 +00:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-14 03:05:50 +00:00
|
|
|
with:
|
2022-11-14 03:40:19 +00:00
|
|
|
branch: "${{ github.head_ref }}"
|
|
|
|
push_options: "--dry-run"
|
|
|
|
file_pattern: "assets/css/compiled/main.css"
|
2022-11-14 03:05:50 +00:00
|
|
|
commit_message: "💄 Rebuild CSS"
|
2022-11-14 03:40:19 +00:00
|
|
|
- run: git push
|