Open PR with gh CLI
This commit is contained in:
parent
9d2dd7cfea
commit
07e43a2208
1 changed files with 17 additions and 9 deletions
|
|
@ -35,14 +35,22 @@ jobs:
|
||||||
npm run build
|
npm run build
|
||||||
env:
|
env:
|
||||||
ENTERPRISE_RELEASES_PATH: ${{ github.workspace }}/enterprise-releases/
|
ENTERPRISE_RELEASES_PATH: ${{ github.workspace }}/enterprise-releases/
|
||||||
- name: Commit Changes
|
|
||||||
uses: peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666 # v5.0.1
|
- name: Update git config
|
||||||
with:
|
run: |
|
||||||
commit-message: Update supported GitHub Enterprise Server versions.
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
title: Update supported GitHub Enterprise Server versions.
|
git config --global user.name "github-actions[bot]"
|
||||||
body: ""
|
|
||||||
author: GitHub <noreply@github.com>
|
- name: Commit changes and open PR
|
||||||
branch: update-supported-enterprise-server-versions
|
|
||||||
draft: true
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
if [[ -z $(git status --porcelain) ]]; then
|
||||||
|
echo "No changes to commit"
|
||||||
|
else
|
||||||
|
git checkout -b update-supported-enterprise-server-versions
|
||||||
|
git add .
|
||||||
|
git commit --message "Update supported GitHub Enterprise Server versions"
|
||||||
|
git push
|
||||||
|
gh pr create --fill --draft
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue