mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
* [macOS] Refactor the rest of the scripts * Return quotes to config tccdb script * Return quotes to config tccdb script * Revert some changes in ruby scripts * Revert some changes in ruby scripts * Revert some changes chrome script * check errors * check errors 01 * find errors in common-utils * find errors in edge install * find errors in edge install --------- Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”>
21 lines
894 B
Bash
21 lines
894 B
Bash
#!/bin/bash -e -o pipefail
|
|
################################################################################
|
|
## File: install-actions-cache.sh
|
|
## Desc: Download latest release from https://github.com/actions/action-versions
|
|
## Maintainer: #actions-runtime and @TingluoHuang
|
|
################################################################################
|
|
|
|
source ~/utils/utils.sh
|
|
|
|
echo "Check if ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE folder exist..."
|
|
if [[ ! -d $ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE ]]; then
|
|
mkdir -p $ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE
|
|
fi
|
|
|
|
download_url=$(resolve_github_release_asset_url "actions/action-versions" "contains(\"action-versions.tar.gz\")" "latest")
|
|
echo "Downloading action-versions $download_url"
|
|
archive_path=$(download_with_retry $download_url)
|
|
tar -xzf $archive_path -C $ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE
|
|
|
|
invoke_tests "ActionArchiveCache"
|