Skip to content

Commit

Permalink
testing org runners
Browse files Browse the repository at this point in the history
  • Loading branch information
mattops committed Jan 9, 2025
1 parent 115db12 commit f0e91f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/usr/local/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}"
Expand Down

0 comments on commit f0e91f8

Please sign in to comment.