File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 38
38
- id : go-version
39
39
run : echo "::set-output name=go-version::$(cat .go-version)"
40
40
41
+ # Check whether the LICENSE_ENCRYPTION_PASSWORD secret exists.
42
+ # Workaround for https://github.com/actions/runner/issues/520.
43
+ license-encryption-password :
44
+ runs-on : ubuntu-latest
45
+ outputs :
46
+ defined : ${{ steps.defined.outputs.defined }}
47
+ steps :
48
+ - id : defined
49
+ env :
50
+ LICENSE_ENCRYPTION_PASSWORD : ${{ secrets.LICENSE_ENCRYPTION_PASSWORD }}
51
+ if : ${{ env.LICENSE_ENCRYPTION_PASSWORD != '' }}
52
+ run : echo "::set-output name=defined::true"
53
+
41
54
acceptance-ce :
42
55
timeout-minutes : 60
43
56
runs-on : ubuntu-latest
61
74
- run : make testacc
62
75
63
76
acceptance-ee :
77
+ # Only run EE tests if the LICENSE_ENCRYPTION_PASSWORD secret exists, so that the workflow
78
+ # doesn't fail when code is pushed to a fork.
79
+ if : ${{ needs.license-encryption-password.outputs.defined }}
64
80
timeout-minutes : 60
65
81
runs-on : ubuntu-latest
66
- needs : [go-version]
82
+ needs : [go-version, license-encryption-password ]
67
83
steps :
68
84
- uses : actions/setup-go@v2
69
85
with :
You can’t perform that action at this time.
0 commit comments