Skip to content

Commit ade7004

Browse files
authored
fixup!
Signed-off-by: Aviv Keller <[email protected]>
1 parent 8bb3d71 commit ade7004

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

.github/workflows/translations-sync.yml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,6 @@ jobs:
5656
# Created from https://crowdin.com/settings#api-key logged in using nodejs-crowdin-bot
5757
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
5858

59-
format_crowdin_pull_request:
60-
needs: synchronize-with-crowdin
61-
runs-on: ubuntu-latest
62-
63-
permissions:
64-
# This permission is required by `stefanzweifel/git-auto-commit-action`
65-
contents: write
66-
67-
steps:
68-
- name: Harden Runner
69-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
70-
with:
71-
egress-policy: audit
72-
73-
- name: Git Checkout
74-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
75-
with:
76-
ref: ${{ env.BRANCH_NAME }}
77-
token: ${{ secrets.CROWDIN_GITHUB_BOT_TOKEN }}
78-
fetch-depth: -1
79-
8059
- name: Restore Lint Cache
8160
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
8261
with:
@@ -115,11 +94,13 @@ jobs:
11594

11695
- name: Patch version if the files changed
11796
run: |
118-
CHANGED_FILES=$(git diff --name-only origin/main HEAD -- packages/website-i18n)
97+
CHANGED_FILES=$(git diff --name-only $BEFORE HEAD -- packages/website-i18n)
11998
if [ -n "$CHANGED_FILES" ]; then
12099
cd packages/website-i18n
121100
pnpm version patch --no-git-tag-version
122101
fi
102+
env:
103+
BEFORE: ${{ github.event.before }}
123104

124105
- name: Push Changes back to Pull Request
125106
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1

0 commit comments

Comments
 (0)