Skip to content

Action fails to find the requested PR to merge it #39

Open
@andrewfullard

Description

@andrewfullard

We are attempting to use this action for our release pipeline, https://github.com/tardis-sn/tardis/actions/workflows/pre-release.yml

Workflow setup:

 - name: Approve pull request
        uses: juliangruber/approve-pull-request-action@v2
        with:
          github-token: ${{ secrets.PR_APPROVAL_TOKEN }}
          number: ${{ steps.create-pr.outputs.pull-request-number }}
        if: steps.create-pr.outputs.pull-request-operation == 'created'

Relevant log output:

2022-12-04T00:23:45.9869326Z Created pull request #2166 (tardis-bot:pre-release-2022.12.04 => master)
[...]
2022-12-04T00:23:47.4887232Z Persisted git credentials restored
2022-12-04T00:23:47.4887819Z ##[endgroup]
2022-12-04T00:23:47.5019152Z ##[group]Run sleep 30
2022-12-04T00:23:47.5019380Z �[36;1msleep 30�[0m
2022-12-04T00:23:47.5071646Z shell: /usr/bin/bash -l {0}
2022-12-04T00:23:47.5071889Z env:
2022-12-04T00:23:47.5072078Z   DATE: 2022.12.04
2022-12-04T00:23:47.5072301Z   PULL_REQUEST_NUMBER: 2166
2022-12-04T00:23:47.5072518Z ##[endgroup]
2022-12-04T00:24:17.6216479Z ##[group]Run juliangruber/approve-pull-request-action@v2
2022-12-04T00:24:17.6216759Z with:
2022-12-04T00:24:17.6217191Z   github-token: ***
2022-12-04T00:24:17.6217958Z   number: 2166
2022-12-04T00:24:17.6218146Z env:
2022-12-04T00:24:17.6218320Z   DATE: 2022.12.04
2022-12-04T00:24:17.6218537Z   PULL_REQUEST_NUMBER: 2166
2022-12-04T00:24:17.6218749Z ##[endgroup]
2022-12-04T00:24:17.8465051Z ##[error]Not Found

The sleep is intended to allow the PR to be created by the previous action.

Would greatly appreciate any help with this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions