Merge pull request #10413 from jdrouet/disable-deploy-fork

fork shouldn't trigger deploy
This commit is contained in:
Jérémie Drouet
2020-03-06 14:18:08 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -15,10 +15,10 @@ jobs:
- name: build image
run: docker build --build-arg=ENABLE_ARCHIVES=false --target=current -t documentation:latest .
- name: copy static files
if: github.repository == 'docker/docker.github.io'
if: github.event.pull_request.head.repo.fork == false
run: docker run -v ${PWD}:/output documentation:latest cp -r /usr/share/nginx/html /output/_site
- uses: ./.github/actions/netlify-deploy
if: github.repository == 'docker/docker.github.io'
if: github.event.pull_request.head.repo.fork == false
with:
directory: _site
netlify_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}

View File

@@ -9,7 +9,7 @@ jobs:
remove-site-from-netlify:
name: build
runs-on: ubuntu-latest
if: github.repository == 'docker/docker.github.io'
if: github.event.pull_request.head.repo.fork == false
steps:
- uses: actions/checkout@v2
with: