We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using this in a job that triggers when a PR is closed:
on: pull_request: types: [closed]
like this:
- name: Detect Pull Request uses: jwalton/gh-find-current-pr@v1 id: findPr with: state: all
but later, when I use this:
env: PR_NUM: ${{ steps.findPr.outputs.pr }}
That value is empty...
The text was updated successfully, but these errors were encountered:
I initially was using
- name: Detect Pull Request uses: jwalton/gh-find-current-pr@v1 id: findPr with: state: closed
But that did not work any differently.
Sorry, something went wrong.
So, in my use case it turns out that simply using:
env: PR_NUM: ${{ github.event.pull_request.number }}
instead of this action works as expected.
the same issue with state input.. simply doesn't get the PR number when closed event happen
I think this action should short circuit if the github.event.pull_request.number is present... then just use octokit to fetch that PR.
No branches or pull requests
I am using this in a job that triggers when a PR is closed:
like this:
but later, when I use this:
That value is empty...
The text was updated successfully, but these errors were encountered: