diff --git a/.github/workflows/pre-commit-auto-update.yml b/.github/workflows/pre-commit-auto-update.yml index 5c005a6..7b991c8 100644 --- a/.github/workflows/pre-commit-auto-update.yml +++ b/.github/workflows/pre-commit-auto-update.yml @@ -31,7 +31,7 @@ jobs: echo "${changes}" >> "${GITHUB_OUTPUT}" echo "${delimiter}" >> "${GITHUB_OUTPUT}" - - name: Create pull request + - name: Create or update pull request id: cpr uses: peter-evans/create-pull-request@v5 with: @@ -48,7 +48,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.PHP_CURL_CLASS_BOT_TOKEN }} - - name: Pull request created + - name: Pull request created or updated if: ${{ steps.cpr.outputs.pull-request-number }} run: | echo "Pull request: ${{ steps.cpr.outputs.pull-request-url }}" @@ -68,6 +68,7 @@ jobs: --json="reviewDecision" \ --jq=".reviewDecision" )" + echo "Pull request review status: ${review_status}" if [[ "${review_status}" != "APPROVED" ]]; then gh pr review --approve "${{ steps.cpr.outputs.pull-request-url }}" fi