Skip to content

Commit 8baf9e9

Browse files
authored
Add debug logging to publish script (#1205)
1 parent b08f678 commit 8baf9e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/publish-charts.sh

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
3+
set -x
34

45
GIT_REPO_ROOT=$(git rev-parse --show-toplevel)
56
BUILD_DIR="${GIT_REPO_ROOT}/build"
@@ -13,7 +14,10 @@ if echo "${VERSION}" | grep -Eq "^v[0-9]+(\.[0-9]+){2}$"; then
1314
git fetch --all
1415
git config user.email [email protected]
1516
git config user.name eks-bot
17+
# Don't leak GITHUB_TOKEN
18+
set +x
1619
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}
20+
set -x
1721
git config pull.rebase false
1822
git checkout gh-pages
1923
mv -n $PACKAGE_DIR/stable/*.tgz .

0 commit comments

Comments
 (0)