File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,22 @@ jobs:
35
35
npm run build
36
36
env :
37
37
ENTERPRISE_RELEASES_PATH : ${{ github.workspace }}/enterprise-releases/
38
- - name : Commit Changes
39
- uses : peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666 # v5.0.1
40
- with :
41
- commit-message : Update supported GitHub Enterprise Server versions.
42
- title : Update supported GitHub Enterprise Server versions.
43
- body : " "
44
- author : GitHub <noreply@github.com>
45
- branch : update-supported-enterprise-server-versions
46
- draft : true
38
+
39
+ - name : Update git config
40
+ run : |
41
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
42
+ git config --global user.name "github-actions[bot]"
43
+
44
+ - name : Commit changes and open PR
47
45
env :
48
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
+ run : |
48
+ if [[ -z $(git status --porcelain) ]]; then
49
+ echo "No changes to commit"
50
+ else
51
+ git checkout -b update-supported-enterprise-server-versions
52
+ git add .
53
+ git commit --message "Update supported GitHub Enterprise Server versions"
54
+ git push
55
+ gh pr create --fill --draft
56
+ fi
You can’t perform that action at this time.
0 commit comments