Changes to workflow

This commit is contained in:
Michel Roegl-Brunner 2025-05-15 10:36:16 +02:00
parent 103e585802
commit b14c1b8b5d

View File

@ -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