chore: add docs actions (#25029)
* chore: mv .travis/* ci/ * chore: add docs action * chore: update mergify
This commit is contained in:
parent
195bb8bd36
commit
0e3fc9d31c
|
@ -0,0 +1,51 @@
|
||||||
|
name: docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- v[0-9]+.[0-9]+
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- v[0-9]+.[0-9]+
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Check
|
||||||
|
run: |
|
||||||
|
source ci/env.sh
|
||||||
|
ci/channel_restriction.sh edge beta
|
||||||
|
|
||||||
|
- name: Get specific changed files
|
||||||
|
id: changed-files-specific
|
||||||
|
uses: tj-actions/changed-files@v19
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
docs/**
|
||||||
|
|
||||||
|
- name: Exit if no file changes in docs/
|
||||||
|
if: steps.changed-files-specific.outputs.any_changed != 'true'
|
||||||
|
run: |
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 14
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
working-directory: docs
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
./build.sh
|
12
.mergify.yml
12
.mergify.yml
|
@ -37,10 +37,10 @@ pull_request_rules:
|
||||||
- label=automerge
|
- label=automerge
|
||||||
- label!=no-automerge
|
- label!=no-automerge
|
||||||
- author≠@dont-squash-my-commits
|
- author≠@dont-squash-my-commits
|
||||||
# - or:
|
- or:
|
||||||
# only require docs checks if docs files changed
|
# only require docs checks if docs files changed
|
||||||
# - status-success=<REPLACE WITH GITHUB ACTION>
|
- status-success=docs
|
||||||
# - -files~=^docs/
|
- -files~=^docs/
|
||||||
- or:
|
- or:
|
||||||
# only require explorer checks if explorer files changed
|
# only require explorer checks if explorer files changed
|
||||||
- status-success=check-explorer
|
- status-success=check-explorer
|
||||||
|
@ -63,10 +63,10 @@ pull_request_rules:
|
||||||
- label=automerge
|
- label=automerge
|
||||||
- label!=no-automerge
|
- label!=no-automerge
|
||||||
- author=@dont-squash-my-commits
|
- author=@dont-squash-my-commits
|
||||||
# - or:
|
- or:
|
||||||
# only require docs checks if docs files changed
|
# only require docs checks if docs files changed
|
||||||
# - status-success=<REPLACE WITH GITHUB ACTION>
|
- status-success=docs
|
||||||
# - -files~=^docs/
|
- -files~=^docs/
|
||||||
- or:
|
- or:
|
||||||
# only require explorer checks if explorer files changed
|
# only require explorer checks if explorer files changed
|
||||||
- status-success=check-explorer
|
- status-success=check-explorer
|
||||||
|
|
Loading…
Reference in New Issue