From 8323090a36cf17a4a533e034b297091023f7b311 Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Wed, 27 Sep 2023 00:01:18 +0200 Subject: [PATCH] Set from PR --- .github/workflows/nrn-modeldb-ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/nrn-modeldb-ci.yaml b/.github/workflows/nrn-modeldb-ci.yaml index 0619fab..c5c3b16 100644 --- a/.github/workflows/nrn-modeldb-ci.yaml +++ b/.github/workflows/nrn-modeldb-ci.yaml @@ -63,6 +63,15 @@ jobs: with: repository: ${{ inputs.repo || github.repository }} + - name: parse versions from PR + parse_neuron_v1=$(gh pr view $PR_URL --json body -q '.body | capture("(?NEURON_V1=[\r\n]*)")') + if [ ! -z "$parse_neuron_v1" ]; then + echo "$(echo $parse_neuron_v1 | jq -r .nrnV1)" >> $GITHUB_ENV + fi + parse_neuron_v2=$(gh pr view $PR_URL --json body -q '.body | capture("(?NEURON_V2=[\r\n]*)")') + if [ ! -z "$parse_neuron_v2" ]; then + echo "$(echo $parse_neuron_v2 | jq -r .nrnV2)" >> $GITHUB_ENV + fi - name: check for Azure drop NEURON_V1 -> ${{ env.NEURON_V1 }} if: startsWith(env.NEURON_V1, 'https://dev.azure.com/neuronsimulator/') run: |