ci: prefine github action (#276)

* ci: migrate bundled artifacts update from pull request to direct commit

* ci: update lint workflow to include code formatting and auto-commit

* chore: update .prettierignore to include yaml files

- Remove the exclusion of `*.yaml` and `*.yml` files from being formatted by Prettier in the `.prettierignore` file.

* ci: update lint workflow conditions

* ci: format code

---------

Co-authored-by: Sped0n <Sped0n@users.noreply.github.com>
This commit is contained in:
Spedon
2024-02-06 22:03:50 +08:00
committed by GitHub
parent d08e2c92b8
commit bf1c5e21bc
3 changed files with 24 additions and 12 deletions

View File

@@ -18,7 +18,7 @@ jobs:
outputs:
any_changed: ${{ steps.changed-files-specific.outputs.any_changed }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
@@ -45,7 +45,9 @@ jobs:
id: version
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
@@ -84,10 +86,6 @@ jobs:
- name: Push artifacts
if: ${{ (github.event_name == 'push' || github.event.pull_request.merged == true) && needs.filter.outputs.any_changed == 'true' }}
uses: peter-evans/create-pull-request@v5
uses: stefanzweifel/git-auto-commit-action@v5
with:
token: ${{ secrets.PAT }}
title: "ci: update bundled artifacts"
commit-message: "ci: update bundled artifacts"
branch: update-artifacts-${{ steps.version.outputs.builddate }}
base: main
commit_message: 'ci: update bundled artifacts'