Skip to content

Commit d58176c

Browse files
committed
Infra: fix preview (missing secret for modules access)
1 parent f2cecb6 commit d58176c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/infra-k8s-preview.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ jobs:
2424
filter-file: .github/k8s-rollout-filters.yaml
2525
- name: Ensure access to private repositories
2626
shell: bash
27-
if: "${{ secrets.K8S_MODULES_SECRET != '' }}"
2827
run: |
29-
AUTH="x-access-token:${{ secrets.K8S_MODULES_SECRET }}"
30-
git config --global url."https://${AUTH}@github.com/".insteadOf "git@github.com:"
28+
if [ "${{ secrets.K8S_MODULES_SECRET }}" != "null" ]; then
29+
AUTH="x-access-token:${{ secrets.K8S_MODULES_SECRET }}"
30+
git config --global url."https://${AUTH}@github.com/".insteadOf "git@github.com:"
31+
fi
3132
- name: Generate diffs
3233
id: preview
3334
run: |

0 commit comments

Comments
 (0)