Build GitHub config

This commit is contained in:
the1812 2023-08-30 09:26:25 +08:00
parent 325de5789f
commit 4ee0fe551a

View File

@ -1,16 +1,24 @@
name: Build
on:
workflow_dispatch:
push:
branches:
- master
- master-cdn
- preview
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: Setup git
run: |-
git config --local user.email github-actions[bot]@users.noreply.github.com
git config --local user.name github-actions[bot]
git config --global core.autocrlf true
git config --global core.safecrlf false
- name: Install dependencies
uses: pnpm/action-setup@v2.2.4
with:
@ -33,10 +41,6 @@ jobs:
- name: Git commit
id: commit
run: |
git config --local user.email github-actions[bot]@users.noreply.github.com
git config --local user.name github-actions[bot]
git config --global core.autocrlf true
git config --global core.safecrlf false
git add --all
git commit -m "CI build"
continue-on-error: true