File tree Expand file tree Collapse file tree 1 file changed +3
-22
lines changed
Expand file tree Collapse file tree 1 file changed +3
-22
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments