Skip to content

Commit d9278f7

Browse files
committed
ci: make publish_toolstate.sh generic over the CI provider
1 parent 580ac0b commit d9278f7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ci/publish_toolstate.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
#!/bin/sh
1+
#!/bin/bash
22

3-
set -eu
3+
set -euo pipefail
4+
IFS=$'\n\t'
5+
6+
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
47

58
# The following lines are also found in src/bootstrap/toolstate.rs,
69
# so if updating here, please also update that file.
@@ -21,7 +24,7 @@ cd rust-toolstate
2124
FAILURE=1
2225
for RETRY_COUNT in 1 2 3 4 5; do
2326
# The purpose is to publish the new "current" toolstate in the toolstate repo.
24-
"$BUILD_SOURCESDIRECTORY/src/tools/publish_toolstate.py" "$GIT_COMMIT" \
27+
"$(ciCheckoutPath)/src/tools/publish_toolstate.py" "$GIT_COMMIT" \
2528
"$GIT_COMMIT_MSG" \
2629
"$MESSAGE_FILE" \
2730
"$TOOLSTATE_REPO_ACCESS_TOKEN"

0 commit comments

Comments
 (0)