We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49fb198 commit 3edb15dCopy full SHA for 3edb15d
entrypoint.sh
@@ -11,8 +11,17 @@ RUNNER_TOKEN=$(curl -s -X POST \
11
-H "Accept: application/vnd.github+json" \
12
"https://api.github.com/orgs/$ORG_NAME/actions/runners/registration-token" | jq -r .token)
13
14
-cd /runner && \
15
-./config.sh --url "$RUNNER_ORG" --token "$RUNNER_TOKEN" &&
+cd /runner
+
16
+# only configure runner if not already configured
17
+if [ ! -f .runner ]; then
18
+ echo "Runner not configured, configuring now..."
19
+ ./config.sh --url "$RUNNER_ORG" --token "$RUNNER_TOKEN"
20
+else
21
+ echo "Runner already configured, skipping config."
22
+fi
23
24
+# Start the runner in the background
25
./run.sh &
26
27
/tools/openocd/src/openocd \
0 commit comments