Skip to content

Commit

Permalink
ci: add a condition to check if event is pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
LuqiPan committed Mar 27, 2024
1 parent b16111d commit f64b764
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-deploy-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
command: pages deploy --project-name=documentation dist/

- name: Comment with preview URL
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
script: |
Expand Down

0 comments on commit f64b764

Please sign in to comment.