mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
build: cancel previous github action runs (#11940)
This commit is contained in:
36
.github/workflows/superset-docs.yml
vendored
36
.github/workflows/superset-docs.yml
vendored
@@ -3,27 +3,31 @@ name: Docs
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- "docs/**"
|
||||
pull_request:
|
||||
paths:
|
||||
- 'docs/**'
|
||||
- "docs/**"
|
||||
|
||||
jobs:
|
||||
docs:
|
||||
name: build
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: npm install
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
npm install
|
||||
- name: lint
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
npm run lint
|
||||
- name: gatsby build
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
npm run build
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.6.0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: npm install
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
npm install
|
||||
- name: lint
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
npm run lint
|
||||
- name: gatsby build
|
||||
working-directory: ./docs
|
||||
run: |
|
||||
npm run build
|
||||
|
||||
Reference in New Issue
Block a user