26
26
- uses : actions/checkout@v4
27
27
with :
28
28
ref : ${{ github.event.pull_request.head.ref }}
29
+ token : ${{ secrets.GGITHUB_TOKEN }}
29
30
- uses : pnpm/action-setup@v4
30
31
- uses : actions/setup-node@v4
31
32
with :
@@ -35,26 +36,25 @@ jobs:
35
36
uses : DimensionDev/github-token-action@latest
36
37
with :
37
38
registry : true
38
- - run : git config --global url."https://github.com/".insteadOf git@github.com
39
39
- run : pnpm install
40
40
- run : npx gulp lint-package-json
41
- - uses : EndBug/add-and-commit@v9
42
- with :
43
- message : ' fix: package.json'
44
41
- run : npx gulp codegen
45
42
- run : pnpm run lingui:extract
46
43
- run : pnpm run lingui:compile
47
- - uses : EndBug/add-and-commit@v9
48
- with :
49
- message : ' fix: run codegen'
50
44
- run : npx gulp sync-languages
51
- - uses : EndBug/add-and-commit@v9
52
- with :
53
- message : ' fix: run sync-languages'
54
45
- run : npx gulp fix-plugins-tsconfig
55
- - uses : EndBug/add-and-commit@v9
56
- with :
57
- message : ' fix: packages/plugins/tsconfig.json'
46
+ - name : Commit and Push changes if necessary
47
+ run : |
48
+ git config --global user.name "github-actions[bot]"
49
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
50
+
51
+ if [[ $(git status --porcelain) ]]; then
52
+ git add ./
53
+ git commit -m "chore: code maintenance [bot]"
54
+ git push origin
55
+ else
56
+ echo "No changes to commit."
57
+ fi
58
58
prettier :
59
59
runs-on : ubuntu-latest
60
60
permissions :
0 commit comments