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 56
56
# Created from https://crowdin.com/settings#api-key logged in using nodejs-crowdin-bot
57
57
CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
58
58
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
-
80
59
- name : Restore Lint Cache
81
60
uses : actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
82
61
with :
@@ -115,11 +94,13 @@ jobs:
115
94
116
95
- name : Patch version if the files changed
117
96
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)
119
98
if [ -n "$CHANGED_FILES" ]; then
120
99
cd packages/website-i18n
121
100
pnpm version patch --no-git-tag-version
122
101
fi
102
+ env :
103
+ BEFORE : ${{ github.event.before }}
123
104
124
105
- name : Push Changes back to Pull Request
125
106
uses : stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
You can’t perform that action at this time.
0 commit comments