Skip to content

Commit 5de66a6

Browse files
authored
try something different
Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent 48d3f0c commit 5de66a6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/translations-sync.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
with:
7676
ref: ${{ env.BRANCH_NAME }}
7777
token: ${{ secrets.CROWDIN_GITHUB_BOT_TOKEN }}
78-
fetch-depth: -1
78+
fetch-depth: 2
7979

8080
- name: Restore Lint Cache
8181
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
@@ -106,21 +106,21 @@ jobs:
106106
- name: Install packages
107107
run: pnpm install --frozen-lockfile
108108

109+
- name: Patch version if the files changed
110+
working-directory: packages/website-i18n
111+
run: |
112+
CHANGED_FILES=$(git diff --name-only HEAD^1 HEAD)
113+
if [ -n "$CHANGED_FILES" ]; then
114+
pnpm version patch --no-git-tag-version
115+
fi
116+
109117
- name: Run ESLint
110118
working-directory: apps/site
111119
run: node --run lint:md -- --fix
112120

113121
- name: Run Prettier
114122
run: node --run prettier:fix
115123

116-
- name: Patch version if the files changed
117-
run: |
118-
CHANGED_FILES=$(git diff --name-only $GITHUB_SHA HEAD -- packages/website-i18n)
119-
if [ -n "$CHANGED_FILES" ]; then
120-
cd packages/website-i18n
121-
pnpm version patch --no-git-tag-version
122-
fi
123-
124124
- name: Push Changes back to Pull Request
125125
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
126126
with:

0 commit comments

Comments
 (0)