Skip to content

Commit

Permalink
skip previewing docs if dependabot pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mahf708 authored Apr 1, 2024
1 parent fbe5389 commit ebc191f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/e3sm-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
folder: ./site/
# If it's a PR from within the same repo, deploy to a preview page
# For security reasons, PRs from forks cannot write into gh-pages for now
- if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
- if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' }}
name: Preview docs
uses: rossjrw/pr-preview-action@v1
with:
Expand Down

0 comments on commit ebc191f

Please sign in to comment.