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

TST: small change to csvs to test xml generation #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tangkong
Copy link
Contributor

Previous PR is working and (presumably) checking out the repo with an ssh key. This aims to fully flex the xml-generation

@tangkong
Copy link
Contributor Author

I don't think that specifying the ref in a workflow works for PRs originating from forks. I also think we have to merge this to see if I'm right
image

@@ -23,7 +23,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
Copy link
Contributor

@KaushikMalapati KaushikMalapati Dec 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SInce this job triggers on pull_request_target and not pull_request, the default checkout would be the branch we are merging into. So if we are trying to merge into the master branch, we would just compare it with itself and post an empty diff.

I think what's happening is that it's trying to checkout the source branch from the target repo (I hope I'm using the right terminology) which doesn't exist. Maybe this would work?

ref: "${{ github.event.pull_request.head.ref }}"
repository: "${{ github.event.pull_request.head.repo.full_name }}"

where we explicitly define where the branch is coming from

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

Successfully merging this pull request may close these issues.

2 participants