Commit 94ac9b3 1 parent 28b7024 commit 94ac9b3 Copy full SHA for 94ac9b3
File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,13 @@ jobs:
53
53
token-exists :
54
54
runs-on : ubuntu-latest
55
55
environment : ${{ inputs.environment }}
56
- if : inputs.destination == 'anaconda'
57
56
steps :
58
57
- name : check if ANACONDA_TOKEN exists
59
58
env :
60
59
# cannot use secrets directly in conditionals
61
60
# see https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow
62
61
anaconda_token : ${{ secrets.ANACONDA_TOKEN }}
63
- if : env.anaconda_token == ''
62
+ if : env.anaconda_token == '' && inputs.destination == 'anaconda'
64
63
run : |
65
64
echo "the secret \"ANACONDA_TOKEN\" is not available, so the conda package cannot be published on release."
66
65
echo "Please go to \"settings \> secrets \> actions\" to create it before trying to build the conda package."
88
87
- name : Add conda channel
89
88
run : conda config --add channels city-modelling-lab
90
89
91
- - name : Add internal conda channel
92
- if : inputs.destination == 'internal'
93
- run : conda config --add channels https://packages.arup.com/conda
94
-
95
90
- name : Build conda package
96
91
run : conda mambabuild ${{ inputs.recipe_dir }}
97
92
You can’t perform that action at this time.
0 commit comments