Skip to content

Commit

Permalink
fix gha version output
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Aug 22, 2024
1 parent c3d7364 commit 096ed91
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/docker-img.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ jobs:
setup-envvar:
runs-on: ubuntu-latest
outputs:
queues: ${{ steps.set-env-var.outputs.queues }}
version: ${{ steps.set-env-var.outputs.version }}
needs: build-docker-img
steps:
Expand All @@ -105,21 +104,14 @@ jobs:
- name: 'Setting env var'
id: set-env-var
run: |
queues=$(python -c 'import api.siibra_api_config as cfg; print(" ".join([f"{q!r}" for q in cfg.queues]))')
version=$(python -c 'import api.siibra_api_config as cfg; print(cfg.__version__)')
version=$(cat VERSION)
if [[ -z "$version" ]]
then
echo "Version population failed: $version"
exit 1
fi
if [[ -z "$queues" ]]
then
echo "Queues population failed: $queues"
exit 1
fi
echo queues=$queues >> $GITHUB_OUTPUT
echo version=$version >> $GITHUB_OUTPUT
deploy-rc-on-data-validation:
Expand Down

0 comments on commit 096ed91

Please sign in to comment.