Skip to content

Commit f42be57

Browse files
authored
fix: Fetch latest build instead of page1-limit1 to figure out cli version (#863)
Signed-off-by: Albert Callarisa <[email protected]>
1 parent c44c28d commit f42be57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/validate_examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
echo "Found $RUNTIME_VERSION"
7171
- name: Determine latest Dapr Cli version
7272
run: |
73-
export CLI_VERSION=$(curl "https://api.github.com/repos/dapr/cli/releases?per_page=1&page=1" --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' | jq '.[0].tag_name'| tr -d '",v')
73+
export CLI_VERSION=$(curl "https://api.github.com/repos/dapr/cli/releases/latest" --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' | jq '.tag_name'| tr -d '",v')
7474
echo "DAPR_CLI_VER=$CLI_VERSION" >> $GITHUB_ENV
7575
echo "Found $CLI_VERSION"
7676
- name: Set up Python ${{ matrix.python_ver }}

0 commit comments

Comments
 (0)