-
Notifications
You must be signed in to change notification settings - Fork 64
chore: follow up fix to verify_library_generation #2721
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
Conversation
Co-authored-by: Joe Wang <[email protected]>
@@ -1,6 +1,11 @@ | |||
on: | |||
push: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you merge main branch, I think this line should not change.
echo "head_ref=${{ github.event.pull_request.head.ref }}" | ||
echo "Head repo URL: ${{ github.event.pull_request.head.repo.html_url }} | ||
# PRs that come from a fork need to be handled differently | ||
if [[ ${{ github.event.pull_request.head.repo.full_name }} == ${{ github.repository }} ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what the difference between github.event.pull_request.head.repo.full_name
and github.repository
if it's a forked repo? Does the former have a different organization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github.repository
will always be googleapis/sdk-platform-java
since that's where this workflow is running from. github.event.pull_request.head.repo.fullname
will have a different organization and potentially different repo name (for instance, for renovate bot, the value is: renovate-bot/gapic-generator-java
)
Could you move github related variable to |
Confirmed this workflow file: https://github.com/googleapis/sdk-platform-java/actions/runs/8931135864/workflow?pr=2657 worked with #2657. Have updated this script to use that workflow file (along with some refactoring to use the env var) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix.
|
|
#2716 didn't quite fix what it should have. Follow up to fix the error: ``` Previous HEAD position was e54601f Merge 30c7c5b into 5d4567f Switched to a new branch 'main' branch 'main' set up to track 'origin/main'. + git fetch --no-tags --prune origin +main:refs/remotes/origin/main From https://github.com/googleapis/sdk-platform-java - [deleted] (none) -> origin/main + git checkout renovate/markupsafe-2.x error: pathspec 'renovate/markupsafe-2.x' did not match any file(s) known to git ``` --------- Co-authored-by: Joe Wang <[email protected]>
#2716 didn't quite fix what it should have. Follow up to fix the error: