Skip to content

Commit a51a289

Browse files
fix: let macOS runner config lookup retry
1 parent 3c9be42 commit a51a289

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

modules/runners/templates/start-runner-osx.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
set -euo pipefail
4-
53
# macOS variant of start-runner.sh
64

75
tag_instance_with_runner_id() {
@@ -112,18 +110,11 @@ token_path=$(echo "$parameters" | jq -r '.[] | select(.Name == "'$ssm_config_pat
112110
echo "Retrieved /$ssm_config_path/token_path parameter - ($token_path)"
113111

114112
echo "Get GH Runner config from AWS SSM"
115-
config=$(aws ssm get-parameter \
116-
--name "$token_path"/"$instance_id" \
117-
--with-decryption \
118-
--region "$region" | jq -r ".Parameter | .Value")
119-
113+
config=$(aws ssm get-parameter --name "$token_path"/"$instance_id" --with-decryption --region "$region" | jq -r ".Parameter | .Value")
120114
while [[ -z "$config" ]]; do
121115
echo "Waiting for GH Runner config to become available in AWS SSM"
122116
sleep 1
123-
config=$(aws ssm get-parameter \
124-
--name "$token_path"/"$instance_id" \
125-
--with-decryption \
126-
--region "$region" | jq -r ".Parameter | .Value")
117+
config=$(aws ssm get-parameter --name "$token_path"/"$instance_id" --with-decryption --region "$region" | jq -r ".Parameter | .Value")
127118
done
128119

129120
echo "Delete GH Runner token from AWS SSM"

0 commit comments

Comments
 (0)