File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -106,27 +106,27 @@ jobs:
106
106
- name : Install packages
107
107
run : pnpm install --frozen-lockfile
108
108
109
+ - name : Patch version if the files changed
110
+ working-directory : packages/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
+
109
117
- name : Run ESLint
110
118
working-directory : apps/site
111
119
run : node --run lint:md -- --fix
112
120
113
121
- name : Run Prettier
114
122
run : node --run prettier:fix
115
123
116
- - name : Patch version if the files changed
117
- run : |
118
- CHANGED_FILES=$(git diff --name-only origin/main HEAD -- packages/website-i18n)
119
- if [ -n "$CHANGED_FILES" ]; then
120
- cd packages/website-i18n
121
- pnpm version patch --no-git-tag-version
122
- else
123
-
124
124
- name : Push Changes back to Pull Request
125
125
uses : stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
126
126
with :
127
127
commit_options : ' --no-verify --signoff'
128
128
commit_message : ' chore: automated format of translated files'
129
- branch : ' chore/crowdin '
129
+ branch : ${{ env.BRANCH_NAME }}
130
130
131
131
- name : Save Lint Cache
132
132
uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
You can’t perform that action at this time.
0 commit comments