From 211393a755383d5cdee890aa5a6fde27393a8dcb Mon Sep 17 00:00:00 2001 From: Christian Harke Date: Fri, 1 Dec 2023 14:49:20 +0100 Subject: [PATCH] Add option for selecting the apt mirror country Since the GitHub cloud runners are located in the US, 'US' is selected to be the default. Source: https://github.com/orgs/community/discussions/24969 --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 62c4bf0..84559a0 100644 --- a/action.yml +++ b/action.yml @@ -48,6 +48,10 @@ inputs: description: "Allow use of alternative apt mirrors" required: false default: "false" + apt-mirror-country: + description: "Location of the apt mirror to use (if using GitHub cloud runners, select 'US')" + required: false + default: "US" runs: using: "composite" @@ -180,7 +184,7 @@ runs: if [[ ${{ inputs.allow-apt-mirrors }} == 'true' ]]; then # Select alternative apt mirror sudo gem install apt-spy2 - sudo apt-spy2 fix --commit --launchpad --country=US + sudo apt-spy2 fix --commit --launchpad --country=${{ inputs.apt-mirror-country }} sudo apt-get update fi