chore: upgrade workflows

This commit is contained in:
yanglbme 2021-02-26 10:47:40 +08:00
parent 9d5dad6306
commit 66155b5b0a
5 changed files with 55 additions and 57 deletions

View File

@ -2,7 +2,7 @@ name: Merge Branch
on: on:
push: push:
branches: [ imgbot ] branches: [imgbot]
jobs: jobs:
merge-branch: merge-branch:
@ -14,4 +14,4 @@ jobs:
github_token: ${{ github.token }} github_token: ${{ github.token }}
source_ref: ${{ github.ref }} source_ref: ${{ github.ref }}
target_branch: main target_branch: main
commit_message_template: '[Automated] Merged {source_ref} into {target_branch}' commit_message_template: "[Automated] Merged {source_ref} into {target_branch}"

View File

@ -2,7 +2,7 @@ name: Build and Deploy
on: on:
push: push:
branches: [ main ] branches: [main]
jobs: jobs:
build-and-deploy: build-and-deploy:
@ -16,7 +16,7 @@ jobs:
- name: Set up node - name: Set up node
uses: actions/setup-node@v2 uses: actions/setup-node@v2
with: with:
node-version: '12' node-version: "12"
check-latest: true check-latest: true
- name: Cache node modules - name: Cache node modules
@ -33,8 +33,7 @@ jobs:
run: npm install run: npm install
- name: Build - name: Build
run: run: npm run build
npm run build
- name: Deploy - name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1 uses: JamesIves/github-pages-deploy-action@3.7.1

View File

@ -13,12 +13,12 @@ name: "CodeQL"
on: on:
push: push:
branches: [ main ] branches: [main]
pull_request: pull_request:
# The branches below must be a subset of the branches above # The branches below must be a subset of the branches above
branches: [ main ] branches: [main]
schedule: schedule:
- cron: '29 14 * * 2' - cron: "29 14 * * 2"
jobs: jobs:
analyze: analyze:
@ -28,7 +28,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: [ 'javascript' ] language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more: # Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

View File

@ -2,7 +2,7 @@ name: Prettier
on: on:
push: push:
branches: [ main ] branches: [main]
jobs: jobs:
prettier: prettier:
@ -17,6 +17,6 @@ jobs:
uses: creyD/prettier_action@v3.3 uses: creyD/prettier_action@v3.3
with: with:
prettier_options: --write **/*.{html,js,md,vue,less,css} prettier_options: --write **/*.{html,js,md,vue,less,css}
commit_message: 'style: prettify code' commit_message: "style: prettify code"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,7 +1,6 @@
name: Sync name: Sync
on: on: page_build
page_build
jobs: jobs:
build: build: