Skip to content

Commit fdb055a

Browse files
sicoylegithub-actions[bot]
authored andcommitted
fix(build): capture latest + rereleases for dapr runtime + cli (#906)
Signed-off-by: Samantha Coyle <sam@diagrid.io> (cherry picked from commit 9b2c641)
1 parent a5b17f6 commit fdb055a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/validate_examples.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ jobs:
6565
repository: ${{ env.CHECKOUT_REPO }}
6666
ref: ${{ env.CHECKOUT_REF }}
6767
- uses: azure/setup-helm@v4
68-
- name: Determine latest Dapr Runtime version
68+
- name: Determine latest Dapr Runtime version (including prerelease)
6969
run: |
70-
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}' )
70+
RUNTIME_VERSION=$(curl -s "https://api.github.com/repos/dapr/dapr/releases" | grep '"tag_name"' | head -n 1 | cut -d ':' -f2 | tr -d '",v ')
7171
echo "DAPR_RUNTIME_VER=$RUNTIME_VERSION" >> $GITHUB_ENV
7272
echo "Found $RUNTIME_VERSION"
73-
- name: Determine latest Dapr Cli version
73+
- name: Determine latest Dapr Cli version (including prerelease)
7474
run: |
75-
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')
75+
CLI_VERSION=$(curl -s "https://api.github.com/repos/dapr/cli/releases" | grep '"tag_name"' | head -n 1 | cut -d ':' -f2 | tr -d '",v ')
7676
echo "DAPR_CLI_VER=$CLI_VERSION" >> $GITHUB_ENV
7777
echo "Found $CLI_VERSION"
7878
- name: Set up Python ${{ matrix.python_ver }}

0 commit comments

Comments
 (0)