Changes to workflow
This commit is contained in:
parent
103e585802
commit
b14c1b8b5d
@ -121,8 +121,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions-automege[bot]"
|
git config --global user.name "github-actions-automege[bot]"
|
||||||
git config --global user.email "github-actions-automege[bot]@users.noreply.github.com"
|
git config --global user.email "github-actions-automege[bot]@users.noreply.github.com"
|
||||||
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --json number --jq '.[].number')
|
PR_NUMBER=$(gh pr list --head "${BRANCH_NAME}" --json number --jq '.[0].number')
|
||||||
if [ -n "$PR_NUMBER" ]; then
|
if [ -n "$PR_NUMBER" ]; then
|
||||||
gh pr review $PR_NUMBER --approve
|
gh pr review "$PR_NUMBER" --approve
|
||||||
gh pr merge $PR_NUMBER --squash --admin
|
gh pr merge "$PR_NUMBER" --squash --admin
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user