Skip to content

Commit f3091c6

Browse files
authored
Merge pull request #391 from algorandfoundation/ci/dependabot-skips-docs-check
ci: skip docs validation for dependabot PRs
2 parents 88e545d + 1e8381f commit f3091c6

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/docs-ci.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,19 @@ jobs:
3434
url: ${{ steps.deploy.outputs.deployment-url || '' }}
3535

3636
steps:
37-
- name: Checkout source code (PR)
37+
- name: Check if Dependabot PR
38+
id: dependabot-check
3839
if: github.event_name == 'pull_request'
40+
run: |
41+
if [ "${{ github.event.pull_request.user.login }}" = "dependabot[bot]" ]; then
42+
echo "is_dependabot=true" >> $GITHUB_OUTPUT
43+
echo "✅ Dependabot PR detected - marking as passed (Dependabot PRs don't modify docs)"
44+
else
45+
echo "is_dependabot=false" >> $GITHUB_OUTPUT
46+
fi
47+
48+
- name: Checkout source code (PR)
49+
if: github.event_name == 'pull_request' && steps.dependabot-check.outputs.is_dependabot != 'true'
3950
uses: actions/checkout@v6
4051
with:
4152
submodules: recursive
@@ -55,6 +66,7 @@ jobs:
5566

5667
- name: Detect docs changes
5768
id: changes
69+
if: steps.dependabot-check.outputs.is_dependabot != 'true'
5870
uses: dorny/paths-filter@v3
5971
with:
6072
filters: |

0 commit comments

Comments
 (0)