mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
Changes to workflow
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user