Skip to content

Commit 78fb0ff

Browse files
authored
ci(docs): skip Netlify preview for Dependabot PRs (#498)
1 parent d32e72e commit 78fb0ff

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ jobs:
5252
id: pages
5353
uses: actions/deploy-pages@v5
5454

55-
# Netlify preview — only on PRs
56-
- if: github.event_name == 'pull_request'
55+
# Netlify preview — only on PRs (excluding Dependabot, which has no secrets access)
56+
- if:
57+
github.event_name == 'pull_request' && github.actor !=
58+
'dependabot[bot]'
5759
name: Deploy to Netlify
5860
id: netlify
5961
env:
@@ -69,7 +71,9 @@ jobs:
6971
DEPLOY_URL=$(jq -r '.deploy_url' deploy_output.json)
7072
echo "deploy_url=$DEPLOY_URL" >> "$GITHUB_OUTPUT"
7173
72-
- if: github.event_name == 'pull_request'
74+
- if:
75+
github.event_name == 'pull_request' && github.actor !=
76+
'dependabot[bot]'
7377
name: Comment on PR
7478
uses: marocchino/sticky-pull-request-comment@v3
7579
with:

0 commit comments

Comments
 (0)