Skip to content

Commit 60cbf70

Browse files
committed
comparison with quotes
1 parent 61eeea7 commit 60cbf70

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/actions/configure-goproxy/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ runs:
2121
id: configure-goproxy
2222
shell: bash
2323
run: |
24-
if [[ -z ${{ inputs.user }} ]] ||
25-
[[ ${{ github.event.pull_request.head.repo.fork }} ]] ||
26-
[[ ${{ startsWith(github.head_ref, 'dependabot-')}} ]] ; then
24+
if [[ -z "${{ inputs.user }}" ]] || \
25+
[[ -z "${{ inputs.token }}" ]] || \
26+
[[ -z "${{ inputs.url }}" ]] || \
27+
[[ "${{ github.event.pull_request.head.repo.fork" }} == 'true' ]] ||
28+
[[ ${{ startsWith(github.head_ref, 'dependabot-')}} == 'true' ]] ; then
2729
echo "No Artifactory secrets available - using direct GOPROXY"
2830
GOPROXY_VALUE="direct"
2931
else

0 commit comments

Comments
 (0)