Skip to content

Commit 4bac0e0

Browse files
authored
feat: ACI-4096 add push input (#11)
1 parent eee2ff0 commit 4bac0e0

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

step.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828
echo "Bitrise Build Cache is activated in this workspace, configuring the build environment ..."
2929

3030
# download the Bitrise Build Cache CLI
31-
export BITRISE_BUILD_CACHE_CLI_VERSION="v1.0.0-rc1"
31+
export BITRISE_BUILD_CACHE_CLI_VERSION="v1.0.0-rc2"
3232
curl --retry 5 -m 30 -sSfL 'https://raw.githubusercontent.com/bitrise-io/bitrise-build-cache-cli/main/install/installer.sh' | sh -s -- -b /tmp/bin -d $BITRISE_BUILD_CACHE_CLI_VERSION || true
3333

3434
# Fall back to Artifact Registry if the download failed
@@ -61,5 +61,9 @@ if [ "$verbose" != "true" ] && [ "$verbose" != "false" ]; then
6161
echo "Parsing inputs failed: Verbose logging ($verbose) is not a valid option."
6262
fi
6363

64+
if [ "$push" != "true" ] && [ "$push" != "false" ]; then
65+
echo "Parsing inputs failed: Push new cache entries ($push) is not a valid option."
66+
fi
67+
6468
# run the Bitrise Build Cache CLI
65-
/tmp/bin/bitrise-build-cache activate xcode --debug="$verbose" --cache
69+
/tmp/bin/bitrise-build-cache activate xcode --debug="$verbose" --cache --cache-push="$push"

step.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,11 @@ inputs:
3030
value_options:
3131
- "true"
3232
- "false"
33+
- push: "true"
34+
opts:
35+
title: Push new cache entries
36+
summary: Whether the build can not only read, but write new entries to the remote cache
37+
is_required: true
38+
value_options:
39+
- "true"
40+
- "false"

0 commit comments

Comments
 (0)