From f0e91f83abe074e95e906ce497b72b27c696686e Mon Sep 17 00:00:00 2001 From: Matt Whittaker <34448412+mattops@users.noreply.github.com> Date: Thu, 9 Jan 2025 16:57:44 +0000 Subject: [PATCH] testing org runners --- .github/workflows/pipeline.yml | 2 +- src/usr/local/bin/entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 91f26c4..c50c02b 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -38,7 +38,7 @@ jobs: # Only need to deploy to production nowadays deploy_to_prod: - if : github.ref == 'refs/heads/main' + if : github.ref == 'refs/heads/matt-test' name: Deploy to prod uses: ./.github/workflows/deploy.yml needs: diff --git a/src/usr/local/bin/entrypoint.sh b/src/usr/local/bin/entrypoint.sh index daaa162..ed01263 100755 --- a/src/usr/local/bin/entrypoint.sh +++ b/src/usr/local/bin/entrypoint.sh @@ -18,7 +18,7 @@ getRegistrationToken=$( --request "POST" \ --header "X-GitHub-Api-Version: 2022-11-28" \ --header "Authorization: Bearer ${GH_AUTH_TOKEN}" \ - https://api.github.com/repos/"${GITHUB_REPOSITORY}"/actions/runners/registration-token | jq -r '.token' + https://api.github.com/org/ministryofjustice/actions/runners/registration-token | jq -r '.token' ) export getRegistrationToken @@ -45,7 +45,7 @@ echo "Configuring runner" bash "${ACTIONS_RUNNER_DIRECTORY}/config.sh" ${EPHEMERAL_FLAG} \ --unattended \ --disableupdate \ - --url "https://github.com/${GITHUB_REPOSITORY}" \ + --url "https://github.com/ministryofjustice" \ --token "${REPO_TOKEN}" \ --name "$(hostname)" \ --labels "${RUNNER_LABELS}"