diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a46b19e2..a29b6de7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -194,6 +194,17 @@ jobs: branch: test-update-pr-title-and-body commit-message: "Just testing [skip ci]" update-pull-request-title-and-body: true + - uses: octokit/request-action@v2.x + id: get-pull-request + with: + route: GET /repos/{owner}/{repo}/pulls/{pull_number} + owner: gr2m + repo: create-or-update-pull-request-action + pull_number: ${{ steps.run.outputs.pull-request-number }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - if: ${{ fromJson(steps.get-pull-request.outputs.data).title != 'Updated test pull request' }} + run: 'echo "Pull request title is \"${{ fromJson(steps.get-pull-request.outputs.data).title }}\" but expected \"Updated test pull request\"" && exit 1' - run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git :test-update-pr-title-and-body" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}