Skip to content

Commit 1ddd9b8

Browse files
authored
Don't run docs deploy step on PRs in template (#589)
Resolves #588
1 parent 58c1968 commit 1ddd9b8

File tree

2 files changed

+2
-0
lines changed
  • tests/data/test_package_generation/.github/workflows
  • {{cookiecutter.project_slug}}/.github/workflows

2 files changed

+2
-0
lines changed

tests/data/test_package_generation/.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
id-token: write
4848
runs-on: ubuntu-latest
4949
needs: build
50+
if: github.event_name != 'pull_request'
5051
steps:
5152
- name: Deploy to GitHub Pages
5253
id: deployment

{{cookiecutter.project_slug}}/.github/workflows/docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
id-token: write
4848
runs-on: ubuntu-latest
4949
needs: build
50+
if: github.event_name != 'pull_request'
5051
steps:
5152
- name: Deploy to GitHub Pages
5253
id: deployment

0 commit comments

Comments
 (0)