Skip to content

feat: 日常更新

feat: 日常更新 #47

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: docs-pr
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
pull_request:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
lint:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install nodejs
uses: actions/[email protected]
with:
node-version: '16.X'
- name: Install deps
run: npm install
- name: Build docs
run: npm run docs:build
- name: Check Build Status
id: build_status
run: echo "::set-output name=status::success"
merge:
needs: build

Check failure on line 38 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / docs-pr

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 38, Col: 12): Job 'merge' depends on unknown job 'build'.
runs-on: ubuntu-latest
steps:
- name: Merge PR
if: ${{ needs.build.outputs.status == 'success' }}
uses: pullreminders/merge-me-action@v2
with:
github_token: ${{ secrets.ACTION_TOKEN }}