Skip to content

Commit c1de497

Browse files
committed
Revert workflow change introduced in #655
Signed-off-by: Bernd Verst <[email protected]>
1 parent 781e2f2 commit c1de497

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/validate_examples.yaml

+4-14
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333
validate:
3434
runs-on: ubuntu-latest
3535
env:
36-
GOVER: 1.21.4
36+
GOVER: 1.20
3737
GOOS: linux
3838
GOARCH: amd64
3939
GOPROXY: https://proxy.golang.org
4040
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
41-
DAPR_CLI_REF: ''
42-
DAPR_REF: master
41+
DAPR_CLI_REF: ${{ github.event.inputs.daprcli_commit }}
42+
DAPR_REF: ${{ github.event.inputs.daprdapr_commit }}
4343
CHECKOUT_REPO: ${{ github.repository }}
4444
CHECKOUT_REF: ${{ github.ref }}
4545

@@ -56,15 +56,7 @@ jobs:
5656
echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV
5757
echo "DAPR_REF=master" >> $GITHUB_ENV
5858
fi
59-
- name: Parse workflow dispatch payload
60-
if: github.event_name == 'workflow_dispatch'
61-
run: |
62-
if [ ${{ github.event.inputs.daprcli_commit }} != '' ]; then
63-
echo "DAPR_CLI_REF=${{ github.event.inputs.daprcli_commit }}" >> $GITHUB_ENV
64-
fi
65-
if [ ${{ github.event.inputs.daprdapr_commit }} != '' ]; then
66-
echo "DAPR_REF=${{ github.event.inputs.daprdapr_commit }}" >> $GITHUB_ENV
67-
fi
59+
6860
- name: Check out code onto GOPATH
6961
uses: actions/checkout@v4
7062
with:
@@ -96,8 +88,6 @@ jobs:
9688
uses: actions/setup-go@v5
9789
with:
9890
go-version: ${{ env.GOVER }}
99-
env:
100-
GOPATH: ${{ github.workspace }}
10191
- name: Checkout Dapr CLI repo to override dapr command.
10292
uses: actions/checkout@v4
10393
if: env.DAPR_CLI_REF != ''

0 commit comments

Comments
 (0)