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

Validation Failed: {"resource":"PullRequest","field":"head","code":"invalid"} #1763

Closed
littleGnAl opened this issue Mar 22, 2023 · 2 comments

Comments

@littleGnAl
Copy link

I'm not very sure if it's the same issue #1459, here's my failed job:
https://github.com/littleGnAl/hoe/actions/runs/4492290785

After I change it to the restful API, it works fine:
https://github.com/littleGnAl/hoe/actions/runs/4492523688

@peter-evans
Copy link
Owner

Hi @littleGnAl

It looks like you are trying to create a pull request from AgoraIO/Agora-Flutter-SDK to AgoraIO-Extensions/Agora-Flutter-SDK. In that case, you are checking out the wrong repository. You need to checkout the base of the pull request, that's AgoraIO-Extensions/Agora-Flutter-SDK, then you update the local repository from AgoraIO/Agora-Flutter-SDK. Then the action runs and will push to the correct repository.

The tricky part is updating from AgoraIO/Agora-Flutter-SDK. The simplest way is probably to checkout on a different path. Make sure the path input on the action points to the base repository, not the source of your updates.

@littleGnAl
Copy link
Author

Thank you so much, @peter-evans , I change the repo to AgoraIO-Extensions/Agora-Flutter-SDK, and works fine now, sorry for my stupid mistake.

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