Skip to content

Commit

Permalink
docs.yml: trigger workflow only on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffjennings committed Jun 24, 2024
1 parent e119be2 commit 15bd02c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: docs

# Run this workflow when a review is requested on a PR that targets the master
# branch, or the PR is closed
on:
push
branches: [main]
# when a review is requested on a PR that targets `main`,
# or the PR is closed:
# pull_request:
# types: [review_requested, closed]
# branches: [master]

# Prevent multiple PRs from building/deploying the docs at the same time
concurrency:
Expand Down Expand Up @@ -43,9 +43,9 @@ jobs:
# check code coverage, store results in the built docs.
# coverage.py creates a .gitignore with '*' where it's run; remove it
# to keep the cooverage report and badge on gh-pages
# to keep the coverage report and badge on gh-pages
- name: Coverage
# only continue if the PR is not just closed, but also merged
# only continue if the PR is not just closed, but also merged:
# if: github.event.pull_request.merged == true
run: |
coverage run --source=py_template -m pytest test/*.py
Expand Down

0 comments on commit 15bd02c

Please sign in to comment.