Skip to content

Commit 9168c8d

Browse files
committed
Fix: Run validations with a hardcoded cli and runtime versions
Signed-off-by: Albert Callarisa <albert@diagrid.io>
1 parent 0218396 commit 9168c8d

1 file changed

Lines changed: 3 additions & 13 deletions

File tree

.github/workflows/validate_examples.yaml

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
GOOS: linux
3838
GOARCH: amd64
3939
GOPROXY: https://proxy.golang.org
40-
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
40+
DAPR_RUNTIME_VER: 1.15.13
41+
DAPR_CLI_VER: 1.15.2
4142
DAPR_CLI_REF: ${{ github.event.inputs.daprcli_commit }}
4243
DAPR_REF: ${{ github.event.inputs.daprdapr_commit }}
4344
CHECKOUT_REPO: ${{ github.repository }}
@@ -62,17 +63,6 @@ jobs:
6263
with:
6364
repository: ${{ env.CHECKOUT_REPO }}
6465
ref: ${{ env.CHECKOUT_REF }}
65-
- uses: azure/setup-helm@v4
66-
- name: Determine latest Dapr Runtime version
67-
run: |
68-
helm repo add dapr https://dapr.github.io/helm-charts/ && helm repo update && export RUNTIME_VERSION=$(helm search repo dapr/dapr --devel --versions | awk '/dapr\/dapr/ {print $3; exit}' )
69-
echo "DAPR_RUNTIME_VER=$RUNTIME_VERSION" >> $GITHUB_ENV
70-
echo "Found $RUNTIME_VERSION"
71-
- name: Determine latest Dapr Cli version
72-
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')
74-
echo "DAPR_CLI_VER=$CLI_VERSION" >> $GITHUB_ENV
75-
echo "Found $CLI_VERSION"
7666
- name: Set up Python ${{ matrix.python_ver }}
7767
uses: actions/setup-python@v5
7868
with:
@@ -82,7 +72,7 @@ jobs:
8272
python -m pip install --upgrade pip
8373
pip install setuptools wheel twine tox
8474
- name: Set up Dapr CLI
85-
run: wget -q ${{ env.DAPR_INSTALL_URL }} -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }}
75+
run: wget -q https://raw.githubusercontent.com/dapr/cli/master/install/install.sh -O - | /bin/bash -s ${{ env.DAPR_CLI_VER }}
8676
- name: Set up Go ${{ env.GOVER }}
8777
if: env.DAPR_REF != '' || env.DAPR_CLI_REF != ''
8878
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)