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

fix(ci): store pull_request.head.sha for later use #1304

Merged
merged 2 commits into from
Feb 25, 2024

Conversation

wdconinc
Copy link
Contributor

Briefly, what does this PR introduce?

Specifying the commit hash with dawidd6/action-download-artifact avoids an API request by bypassing https://github.com/dawidd6/action-download-artifact/blob/master/main.js#L87. This PR modifies the list-open-prs job to pass the head.sha as commit to the get-docs-from-open-prs matrix.

What kind of change does this PR introduce?

  • Bug fix (issue: too many API requests)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.

@wdconinc
Copy link
Contributor Author

Works in e.g. https://github.com/eic/EICrecon/actions/runs/8035056352/job/21947421609?pr=1304: gets passed pr as well as head_sha, so doesn't need to look up head_sha.

Copy link

Merged via the queue into main with commit ec48f3e Feb 25, 2024
74 of 75 checks passed
@wdconinc wdconinc deleted the ci-action-download-artifact-with-commit-from-pr branch February 25, 2024 04:40
simonge pushed a commit that referenced this pull request Feb 27, 2024
### Briefly, what does this PR introduce?
Specifying the commit hash with dawidd6/action-download-artifact avoids
an API request by bypassing
https://github.com/dawidd6/action-download-artifact/blob/master/main.js#L87.
This PR modifies the list-open-prs job to pass the head.sha as commit to
the get-docs-from-open-prs matrix.

### What kind of change does this PR introduce?
- [x] Bug fix (issue: too many API requests)
- [ ] New feature (issue #__)
- [ ] Documentation update
- [ ] Other: __

### Please check if this PR fulfills the following:
- [ ] Tests for the changes have been added
- [ ] Documentation has been added / updated
- [ ] Changes have been communicated to collaborators

### Does this PR introduce breaking changes? What changes might users
need to make to their code?
No.

### Does this PR change default behavior?
No.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants