Skip to content

Commit 5e8cf38

Browse files
adjusted cat script and service file
1 parent 4135d7b commit 5e8cf38

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/scripts/ppc64le/self-hosted-builder/fs/usr/bin/actions-runner

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
set -e -u
44

5+
56
# first import docker image
67
if [ -f ./manywheel-ppc64le.tar ] ; then
78
docker image load --input manywheel-ppc64le.tar
@@ -18,7 +19,7 @@ curl \
1819
-X POST \
1920
-H "Accept: application/vnd.github.v3+json" \
2021
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
21-
"https://api.github.com/orgs/${ORG}/actions/runners/registration-token" \
22+
"https://api.github.com/repos/${OWNER}/${REPO}/actions/runners/registration-token" \
2223
-o "$token_file"
2324

2425
unset ACCESS_TOKEN
@@ -32,7 +33,7 @@ cd /opt/runner
3233
./config.sh \
3334
--unattended \
3435
--ephemeral \
35-
--url "https://github.com/${ORG}" \
36+
--url "https://github.com/${OWNER}/${REPO}" \
3637
--token "${registration_token}" \
3738
--name "${NAME}" \
3839
--no-default-labels \
@@ -44,7 +45,7 @@ rm -f "$token_file"
4445
# enter into python virtual environment.
4546
# build workflows use "python -m pip install ...",
4647
# and it doesn't work for non-root user
47-
source venv/bin/activate
48+
#source venv/bin/activate
4849

4950
# Run one job.
5051
./run.sh

.github/scripts/ppc64le/self-hosted-builder/helpers/gh_token_generator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ APP_PRIVATE_KEY=$3
77
DST_FILE="$4"
88

99
ACCESS_TOKEN="$(APP_ID="$(<"${APP_ID}")" INSTALL_ID="$(<"${INSTALL_ID}")" APP_PRIVATE_KEY="${APP_PRIVATE_KEY}" "${SCRIPT_DIR}/app_token.sh")"
10-
echo "ACCESS_TOKEN=${ACCESS_TOKEN}" > "${DST_FILE}"
10+
echo "${ACCESS_TOKEN}" > "${DST_FILE}"

0 commit comments

Comments
 (0)