Merge pull request #281394 from tweag/by-name-remove-legacy-script

check-by-name: Remove legacy script

authored by Silvan Mosberger and committed by GitHub ac1638d0 82f17760

-19
-19
pkgs/test/nixpkgs-check-by-name/scripts/fetch-tool.sh
··· 1 - #!/usr/bin/env bash 2 - # Legacy script to make CI work for the PR that replaces this 3 - # Needed due to `.github/workflows/check-by-name.yml` using `pull_request_target`, 4 - # which uses the workflow from the base branch, which still uses this script. 5 - # This file can be removed after the PR replacing it is merged. 6 - 7 - trace() { echo >&2 "$@"; } 8 - 9 - if (( $# < 2 )); then 10 - trace "Usage: $0 BASE_BRANCH OUTPUT_PATH" 11 - trace "BASE_BRANCH (unused): The base branch to use, e.g. master or release-23.11" 12 - trace "OUTPUT_PATH: The output symlink path for the tool" 13 - exit 1 14 - fi 15 - output=$2 16 - 17 - SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) 18 - 19 - "$SCRIPT_DIR"/fetch-pinned-tool.sh "$output"