hail search dataset version release #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: hail search dataset version release | |
on: | |
workflow_dispatch: | |
inputs: | |
reference_genome: | |
type: choice | |
description: Reference Genome | |
options: | |
- GRCh37 | |
- GRCh38 | |
required: true | |
dataset_type: | |
type: choice | |
description: Dataset Type | |
options: | |
- SNV_INDEL | |
- MITO | |
- GCNV | |
- SV | |
required: true | |
version: | |
required: true | |
jobs: | |
helm_update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Retrieve tgg-helm repo for broad seqr chart | |
uses: actions/checkout@v3 | |
with: | |
repository: broadinstitute/tgg-helm | |
token: ${{ secrets.SEQR_VERSION_UPDATE_TOKEN }} | |
ref: main | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: update dataset version in the broad-seqr chart | |
uses: mikefarah/yq@v4.22.1 | |
with: | |
cmd: > | |
yq -i '.global.hail_search.datasetVersions.${{ inputs.reference_genome }}/${{ inputs.dataset_type }} = "${{ inputs.version }}"' charts/broad-seqr/values.yaml | |
- name: Commit and Push changes | |
uses: Andro999b/push@v1.3 | |
with: | |
repository: broadinstitute/tgg-helm | |
branch: main | |
github_token: ${{ secrets.SEQR_VERSION_UPDATE_TOKEN }} | |
author_email: ${{ github.actor }}@users.noreply.github.com | |
author_name: tgg-automation | |
message: "Updating ${{ inputs.reference_genome }}/${{ inputs.dataset_type }} dataset version to ${{ inputs.version }}" |