This repository was archived by the owner on Feb 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : Ensure source code is properly formatted
2
2
3
- on : pull_request
3
+ on :
4
+ push :
5
+ branches : [saga]
4
6
5
7
permissions :
6
8
contents : write
@@ -36,13 +38,14 @@ jobs:
36
38
- name : Format source code with prettier
37
39
run : npx prettier --write ./
38
40
39
- - name : Commit changes
40
- run : |
41
- if ! git diff --exit-code --name-only; then
42
- echo "machine github.com login accesskey password ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc
43
- git config --global user.email "[email protected] "
44
- git config --global user.name "github-actions[bot]"
45
- git add -A
46
- git commit -m "style: auto-format source code"
47
- git push origin HEAD:${{ github.event.pull_request.head.ref }}
48
- fi
41
+ - name : Create Pull Request
42
+ uses : peter-evans/create-pull-request@v4
43
+ with :
44
+ commit-message : " style: auto-format source code"
45
+ committer :
" github-actions[bot] <[email protected] >"
46
+ author :
" github-actions[bot] <[email protected] >"
47
+ branch : format-source
48
+ delete-branch : true
49
+ title : " Auto-format source"
50
+ body : " Ensure source code is properly formatted"
51
+ labels : enhancement
You can’t perform that action at this time.
0 commit comments