Stop deploying docs / drafting releases from forks (#7911)

This commit is contained in:
Jukka Kurkela 2020-10-18 16:27:29 +03:00 committed by GitHub
parent 8e640f4c71
commit 04850d9477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# This workflow publishes new documentation to https://chartjs.org/docs/master after every commit
name: CI
name: Deploy docs
on:
push:
@ -7,9 +7,16 @@ on:
- master
jobs:
build:
correct_repository:
runs-on: ubuntu-latest
steps:
- name: fail on fork
if: github.repository_owner != 'chartjs'
run: exit 1
build:
needs: correct_repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js

View File

@ -6,7 +6,15 @@ on:
- master
jobs:
correct_repository:
runs-on: ubuntu-latest
steps:
- name: fail on fork
if: github.repository_owner != 'chartjs'
run: exit 1
update_release_draft:
needs: correct_repository
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5