Skip to content
New issue

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

Invalid value for parameter 'pull_number': "" is NaN #64

Open
EnzooKms opened this issue Jun 16, 2023 · 1 comment
Open

Invalid value for parameter 'pull_number': "" is NaN #64

EnzooKms opened this issue Jun 16, 2023 · 1 comment

Comments

@EnzooKms
Copy link

0s
Run juliangruber/approve-pull-request-action@v1
(https://github.com/EnzooKms/EnzooKms/actions/runs/5294332107/jobs/9583558838#step:6:1).1.1
Error: Invalid value for parameter 'pull_number': "" is NaN

My YML

How i can fix that ?

@juliangruber
Copy link
Owner

It looks like peter-evans/create-pull-request doesn't always create pull requests. If you look at your logs, it says

Branch 'dev' no longer differs from base branch 'main'

I think therefore you want to make the steps after that one conditional, and add something like this to the approve and merge steps

- if: ${{ steps.pr-1.outputs.pull-request-number }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants