You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: publish/action.yaml
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -42,17 +42,19 @@ runs:
42
42
run: |
43
43
if command -v anaconda &>/dev/null; then
44
44
echo "'anaconda' command is available. Using it for upload."
45
-
export CMD="anaconda"
45
+
echo "CMD=anaconda" >> $GITHUB_OUTPUT
46
46
elif pixi run anaconda --version &>/dev/null; then
47
47
echo "anaconda command is available via pixi. Using 'pixi run anaconda' for upload."
48
-
export CMD="pixi run anaconda"
48
+
echo "CMD='pixi run anaconda'" >> $GITHUB_OUTPUT
49
49
else
50
-
echo "anaconda command is not available via pixi. Checking for 'anaconda' command..."
51
-
if command -v anaconda &>/dev/null; then
52
-
echo "'anaconda' command found. Using it for upload."
53
-
export CMD="anaconda"
50
+
echo "Checking for 'pixi' command..."
51
+
if command -v pixi &>/dev/null; then
52
+
echo "'pixi' command is available but 'anaconda' is not found. Installing anaconda-client..."
53
+
pixi global install anaconda-client
54
+
echo "Using 'pixi run anaconda' for upload after installation."
55
+
echo "CMD='pixi run anaconda'" >> $GITHUB_OUTPUT
54
56
else
55
-
echo "Neither 'anaconda' command nor 'pixi run anaconda' is available. Please ensure that anaconda-client is installed and available in PATH or via pixi."
57
+
echo "Neither 'anaconda' command nor 'pixi' is available. Please ensure that anaconda-client is installed and available in PATH or via pixi."
0 commit comments