Skip to content

Commit 211393a

Browse files
committed
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
1 parent 31d7916 commit 211393a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ inputs:
4848
description: "Allow use of alternative apt mirrors"
4949
required: false
5050
default: "false"
51+
apt-mirror-country:
52+
description: "Location of the apt mirror to use (if using GitHub cloud runners, select 'US')"
53+
required: false
54+
default: "US"
5155

5256
runs:
5357
using: "composite"
@@ -180,7 +184,7 @@ runs:
180184
if [[ ${{ inputs.allow-apt-mirrors }} == 'true' ]]; then
181185
# Select alternative apt mirror
182186
sudo gem install apt-spy2
183-
sudo apt-spy2 fix --commit --launchpad --country=US
187+
sudo apt-spy2 fix --commit --launchpad --country=${{ inputs.apt-mirror-country }}
184188
sudo apt-get update
185189
fi
186190

0 commit comments

Comments
 (0)