diff --git a/.github/workflows/build-theme.yml b/.github/workflows/build-theme.yml index a940956c..2b2f564f 100644 --- a/.github/workflows/build-theme.yml +++ b/.github/workflows/build-theme.yml @@ -12,15 +12,41 @@ jobs: - name: Install dependencies and Build Theme uses: actions/setup-node@v3 - run: npm install - - run: npm run build - - name: Commit and push CSS changes - uses: devops-infra/action-commit-push@master - with: - github_token: "${{ secrets.GITHUB_TOKEN }}" - commit_message: "💄 Rebuild CSS" - run: npm run assets - - name: Commit and push vendor changes - uses: devops-infra/action-commit-push@master + - name: Commit and push Chart.js changes + uses: stefanzweifel/git-auto-commit-action@v4 with: - github_token: "${{ secrets.GITHUB_TOKEN }}" - commit_message: "📦 Update packaged assets" + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/lib/chart/*" + commit_message: "📦 Update packaged ChartJS" + - name: Commit Fuse changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/lib/fuse/*" + commit_message: "📦 Update packaged FuseJS" + - name: Commit KaTeX changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/lib/katex/*" + commit_message: "📦 Update packaged KaTeX" + - name: Commit Mermaid changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/lib/mermaid/*" + commit_message: "📦 Update packaged Mermaid" + - run: npm run build + - name: Commit CSS changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/css/compiled/main.css" + commit_message: "💄 Rebuild CSS" + - run: git push