Skip to content

Commit 764bb89

Browse files
committed
fix: Support Knope >= 0.16.2
1 parent 70b1491 commit 764bb89

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ jobs:
2525
run: knope --help
2626
- name: Verify no artifacts in path
2727
run: git status
28+
install-monorepo-version:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Install Knope
34+
uses: ./
35+
with:
36+
version: 0.16.2
37+
- name: Test Knope
38+
run: knope --help
39+
- name: Verify no artifacts in path
40+
run: git status
2841
pass-a-token:
2942
runs-on: ubuntu-latest
3043
steps:

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ else
1414
TAG="${VERSION}"
1515
fi
1616

17+
# If the version is 0.16.2 or greater, the tag is prefixed with knope/
18+
if [[ ${TAG} == "v0.16.2" || ${TAG} > "v0.16.2" ]]; then
19+
TAG="knope/${TAG}"
20+
fi
21+
1722
# Use the GitHub CLI to download
1823

1924
gh release download "${TAG}" --repo "knope-dev/knope" --pattern "*linux*"

0 commit comments

Comments
 (0)