File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 5
5
jobs :
6
6
build-pr :
7
7
runs-on : ubuntu-latest
8
+ permissions :
9
+ contents : write
10
+ pull-requests : write
8
11
steps :
9
12
- uses : actions/checkout@v3
10
13
- uses : webiny/action-conventional-commits@v1.2.0
28
31
- name : Check if there are style changes
29
32
id : changes-spotless
30
33
uses : UnicornGlobal/has-changes-action@v1.0.11
31
- - uses : SOF3/octodiff@1.0.0
32
- with :
33
- token : ${{secrets.GH_TOKEN}}
34
+ - name : Push local changes
35
+ if : steps.changes-spotless.outputs.changed == 1 || steps.changes-openrewrite.outputs.changed
36
+ run : |
37
+ git config --global user.name "github-actions"
38
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
39
+ git add -A
40
+ git commit -m "style: Apply linting rules"
41
+ git push "https://${GITHUB_ACTOR}:${{ env.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:${{ github.ref_name }}-lint --force
42
+ shell : bash
34
43
- name : Process lint changes
35
44
if : steps.changes-spotless.outputs.changed == 1 || steps.changes-openrewrite.outputs.changed
36
45
uses : actions/github-script@v3
You can’t perform that action at this time.
0 commit comments