2022-11-18 16:25:59 -06:00
|
|
|
name: Build Theme
|
|
|
|
|
|
|
|
on: [pull_request_target]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-10 00:25:07 -05:00
|
|
|
uses: actions/checkout@v4
|
2022-11-18 16:25:59 -06:00
|
|
|
with:
|
|
|
|
ref: "${{ github.head_ref }}"
|
|
|
|
- name: Install dependencies and Build Theme
|
2023-10-25 00:03:40 -05:00
|
|
|
uses: actions/setup-node@v4
|
2022-11-18 16:25:59 -06:00
|
|
|
- run: npm install
|
|
|
|
- run: npm run assets
|
|
|
|
- name: Commit and push Chart.js changes
|
2023-10-11 00:37:08 -05:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-18 16:25:59 -06: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-11 00:37:08 -05:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-18 16:25:59 -06: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-11 00:37:08 -05:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-18 16:25:59 -06:00
|
|
|
with:
|
|
|
|
branch: "${{ github.head_ref }}"
|
|
|
|
push_options: "--dry-run"
|
|
|
|
file_pattern: "assets/lib/katex/*"
|
|
|
|
commit_message: "📦 Update packaged KaTeX"
|
2024-03-07 14:14:09 -06:00
|
|
|
- name: Commit Mermaid changes
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
with:
|
|
|
|
branch: "${{ github.head_ref }}"
|
|
|
|
push_options: "--dry-run"
|
|
|
|
file_pattern: "assets/lib/mermaid/*"
|
|
|
|
commit_message: "📦 Update packaged Mermaid"
|
2022-11-18 16:25:59 -06:00
|
|
|
- run: npm run build
|
|
|
|
- name: Commit CSS changes
|
2023-10-11 00:37:08 -05:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2022-11-18 16:25:59 -06:00
|
|
|
with:
|
|
|
|
branch: "${{ github.head_ref }}"
|
|
|
|
push_options: "--dry-run"
|
|
|
|
file_pattern: "assets/css/compiled/main.css"
|
|
|
|
commit_message: "💄 Rebuild CSS"
|
|
|
|
- run: git push
|