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 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 :
You can’t perform that action at this time.
0 commit comments