Skip to content

Commit 48d3f0c

Browse files
authored
Fix changed files detection in translations-sync.yml
Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent 19bba22 commit 48d3f0c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/translations-sync.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,11 @@ jobs:
115115

116116
- name: Patch version if the files changed
117117
run: |
118-
CHANGED_FILES=$(git diff --name-only $BEFORE HEAD -- packages/website-i18n)
118+
CHANGED_FILES=$(git diff --name-only $GITHUB_SHA HEAD -- packages/website-i18n)
119119
if [ -n "$CHANGED_FILES" ]; then
120120
cd packages/website-i18n
121121
pnpm version patch --no-git-tag-version
122122
fi
123-
env:
124-
BEFORE: ${{ github.event.before }}
125123
126124
- name: Push Changes back to Pull Request
127125
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1

0 commit comments

Comments
 (0)