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

create ga for release management #18

Closed
wants to merge 1 commit into from

Conversation

vkt1414
Copy link
Collaborator

@vkt1414 vkt1414 commented Nov 28, 2023

This workflow will address task 1 of ImagingDataCommons/idc-index-data#2

It will get the current version of IDC referenced in the index and check if it is outdated wrt to the IDC release referenced by the bigquery-public-data.idc_current.dicom_all view in bigquery. If it is outdated, it will update the version in each of the queries in the queries/ folder of the repo, run them using bigquery, and generate a {query_file_prefix}.csv.zip for each query. It will also update the version in index.py.

It then deletes the 'latest' tagged release if present already creates a new release with the 'latest' tag, and uploads the csv.zip files as a release attachment along with an updated query in the 'body' of the release.

Lastly, it will create a pull request to update the SQL queries in the queries/ folder and the index.py

Note: We must create a GitHub secret called SERVICE_ACCOUNT_KEY

@vkt1414 vkt1414 requested a review from fedorov November 28, 2023 13:44
.github/get-latest-index.py Show resolved Hide resolved
.github/get-latest-index.py Show resolved Hide resolved
print("No updates were found.")


# Create a new branch
Copy link
Member

Choose a reason for hiding this comment

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

I would think this code should only be invoked when changes were detected, no?

.github/get-latest-index.py Show resolved Hide resolved
@vkt1414
Copy link
Collaborator Author

vkt1414 commented Nov 29, 2023

I closed PR 18 by addressing the changes requested and created a new one

@vkt1414 vkt1414 closed this Nov 29, 2023
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