Skip to content

Commit 1e8381f

Browse files
committed
chore: mark skipped as passed
1 parent 28cbf40 commit 1e8381f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/docs-ci.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
name: Validate & Preview Docs (if changed)
2626
runs-on: ubuntu-latest
2727
if: >
28-
(github.event_name == 'pull_request' && github.event.pull_request.draft == false && github.event.pull_request.user.login != 'dependabot[bot]') ||
28+
(github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
2929
github.event_name == 'workflow_dispatch' ||
3030
github.event_name == 'workflow_call'
3131
@@ -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)