Compare commits
2 Commits
0b45c6adf1
...
d72d43a51f
Author | SHA1 | Date | |
---|---|---|---|
d72d43a51f | |||
b569e49893 |
@ -6,10 +6,6 @@ on:
|
|||||||
types: [ "opened", "edited" ]
|
types: [ "opened", "edited" ]
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
env:
|
|
||||||
# renovate: datasource=docker depName=koalaman/shellcheck
|
|
||||||
HELM_VERSION: "v0.10.0"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -8,9 +8,14 @@ check_token() {
|
|||||||
set +e
|
set +e
|
||||||
|
|
||||||
echo "Checking for existing token..."
|
echo "Checking for existing token..."
|
||||||
token="$(kubectl get secret "$SECRET_NAME" -o jsonpath="{.data['token']}" 2> /dev/null)"
|
if ! token=$(kubectl get secret "${SECRET_NAME}" -o jsonpath="{.data['token']}" 2> /dev/null); then
|
||||||
[ $? -ne 0 ] && return 1
|
return 1
|
||||||
[ -z "$token" ] && return 2
|
fi
|
||||||
|
|
||||||
|
if [ -z "${token}" ]; then
|
||||||
|
return 2
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user