-
Notifications
You must be signed in to change notification settings - Fork 186
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
add action workflow to update citation.cff when doing a release #3954
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3954 +/- ##
=======================================
Coverage 93.98% 93.98%
=======================================
Files 162 162
Lines 21354 21354
=======================================
Hits 20070 20070
Misses 1284 1284 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Dear all, |
I think some solution like this should be in place for v1.0, so I put the v1.0 milestone here... |
Thanks @vuillaut! What is not clear to me is, whether it make sense to have that as an action that runs on pushing a tag. This basically introduces the change after the tag, however shouldn't it be included with the tag? So the |
Indeed, there are 3 cases (for the work after the V1.0):
|
@bkhelifi No, I think independent of any version number the script should just always create a new What is less clear to me is when the update to the
|
Agree... as long as we follow the PIG24. |
Hi @adonath I have thought about this, let me try to explain: Here the current situation with the metadata and the release process: Metadata are partially handled by gammapy ( This is more flexible, lighter and less error prone for the Zenodo publication, because the GitHub-Zenodo integration is doing a lot for you in the background, and if the If you want to do the publication to Zenodo yourself (required if you want to prereserve a DOI and update your metadata before upload), you then need to have full control over your metadata. If the metadata payload is not exactly what Zenodo expects, the publication will fail. However, this gives you more control - so I let you decide the benefit / risk balance. The process might then look like this: To handle the publication to Zenodo, you need:
To handle the upload, you may use the ESCAPE
The
You can finish the publication in the script, or later manually in Zenodo API:
Note that in this workflow, |
Interestingly, I opened an issue several months ago already to update the That would simplify your life, simply using eossr CLI in gammay CI when doing a release:
If this is what you would like to have as a workflow, I could work on it. However, I think that would mean dropping |
Does this code be able to use a template to fill other fields? like this one: https://github.com/bkhelifi/gammapy/blob/Authors/dev/FOOTER_CODEMETA.json |
Yes, you would just
|
Description
Introduces an action to update
CITATION.cff
release date when doing a new release in order to solve #3953Dear reviewer
I am not sure either this is the solution gammapy team would prefer to solve that issue, nor if it would actually work, so some feedback would be welcome.
Potential issue with that PR:
CITATION.cff
), it will break the tag release