-
Notifications
You must be signed in to change notification settings - Fork 81
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: Correct reference check in GitHub Actions publish to TestPyPI step #640
Conversation
Codecov Report
@@ Coverage Diff @@
## master #640 +/- ##
=======================================
Coverage 94.93% 94.93%
=======================================
Files 42 42
Lines 2547 2547
Branches 345 345
=======================================
Hits 2418 2418
Misses 85 85
Partials 44 44
Continue to review full report at Codecov.
|
For posterity, to document the logic that is being used here that @kratsg had to explain to me as I missed it: Given that
this means that
if getenv('IS_COMMIT_TAGGED') == 'false' then use
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') This largely comes from the work @kratsg did on |
Co-Authored-By: Matthew Feickert <matthew.feickert@cern.ch>
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.
Thank you @kratsg for the fix. Also, thank you for doing all the work already in stare
.
We're safe from malicious PRs: maxheld83/ghactions#262 (comment) |
Description
This adds in changes to #639. GHA triggers pushes on PRs as well... so you can't tell if a push event comes from a PR or not. Also need to fix logic of whether to use
scm
or not depending on if we're tagged or not.Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: