File tree 1 file changed +4
-14
lines changed
1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ jobs:
33
33
validate :
34
34
runs-on : ubuntu-latest
35
35
env :
36
- GOVER : 1.21.4
36
+ GOVER : 1.20
37
37
GOOS : linux
38
38
GOARCH : amd64
39
39
GOPROXY : https://proxy.golang.org
40
40
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 }}
43
43
CHECKOUT_REPO : ${{ github.repository }}
44
44
CHECKOUT_REF : ${{ github.ref }}
45
45
56
56
echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV
57
57
echo "DAPR_REF=master" >> $GITHUB_ENV
58
58
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
+
68
60
- name : Check out code onto GOPATH
69
61
uses : actions/checkout@v4
70
62
with :
96
88
uses : actions/setup-go@v5
97
89
with :
98
90
go-version : ${{ env.GOVER }}
99
- env :
100
- GOPATH : ${{ github.workspace }}
101
91
- name : Checkout Dapr CLI repo to override dapr command.
102
92
uses : actions/checkout@v4
103
93
if : env.DAPR_CLI_REF != ''
You can’t perform that action at this time.
0 commit comments