Skip to content

Commit 33269da

Browse files
committed
Update workflow once more
1 parent 0a27e9d commit 33269da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/translate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- "docs/en/**/*.md"
97
workflow_dispatch: # Allow manual triggering
108

119
jobs:
@@ -38,6 +36,7 @@ jobs:
3836
run: |
3937
# Get list of added or modified Markdown files in docs/en/
4038
# Using --diff-filter=AM to include both Added and Modified files
39+
# Only check for changed files if docs were actually modified
4140
CHANGED_FILES=$(git diff --name-only --diff-filter=AM HEAD~1 HEAD | grep '^docs/en/.*\.md$' || true)
4241
4342
if [ -z "$CHANGED_FILES" ]; then
@@ -130,6 +129,7 @@ jobs:
130129
fi
131130
132131
- name: Deploy docs
132+
if: always() && !failure() && !cancelled()
133133
uses: mhausenblas/mkdocs-deploy-gh-pages@master
134134
env:
135135
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)