File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Push
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ cog_version :
7+ description : ' Cog version to use (eg latest, v0.14.11)'
8+ type : string
9+ default : ' latest'
510
611jobs :
712 cog-safe-push :
1924
2025 - name : Install Cog
2126 run : |
22- sudo curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)"
27+ if [ "${{ inputs.cog_version }}" = "latest" ]; then
28+ sudo curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/latest/download/cog_$(uname -s)_$(uname -m)"
29+ else
30+ sudo curl -o /usr/local/bin/cog -L "https://github.com/replicate/cog/releases/download/${{ inputs.cog_version }}/cog_$(uname -s)_$(uname -m)"
31+ fi
2332 sudo chmod +x /usr/local/bin/cog
2433
2534 - name : cog login
You can’t perform that action at this time.
0 commit comments