Skip to content

Commit 2567dff

Browse files
committed
fix(release): pin install.sh version from tag, install Scoop before using it
1 parent 12e69a4 commit 2567dff

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- name: Install via install.sh
7878
if: matrix.name == 'install.sh'
7979
run: |
80-
curl -fsSL https://supermodeltools.com/install.sh | SUPERMODEL_INSTALL_DIR="$HOME/.local/bin" sh
80+
curl -fsSL https://supermodeltools.com/install.sh | SUPERMODEL_INSTALL_DIR="$HOME/.local/bin" SUPERMODEL_VERSION="${GITHUB_REF_NAME}" sh
8181
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
8282
8383
- name: Install via npm
@@ -88,6 +88,13 @@ jobs:
8888
if: matrix.name == 'homebrew'
8989
run: brew install supermodeltools/tap/supermodel
9090

91+
- name: Install Scoop
92+
if: matrix.name == 'scoop'
93+
shell: pwsh
94+
run: |
95+
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
96+
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
97+
9198
- name: Install via Scoop
9299
if: matrix.name == 'scoop'
93100
shell: pwsh

0 commit comments

Comments
 (0)