This commit is contained in:
@@ -5,7 +5,7 @@ name: port-to-omp
|
|||||||
#
|
#
|
||||||
# Prerequisites on git.freno.me:
|
# Prerequisites on git.freno.me:
|
||||||
# - an access token with write:repository scope, stored as the repo/org
|
# - an access token with write:repository scope, stored as the repo/org
|
||||||
# secret PORTING_TOKEN (the workflow authenticates as `oauth2:<token>` over
|
# secret PORTING_KEY (the workflow authenticates as `oauth2:<token>` over
|
||||||
# https)
|
# https)
|
||||||
# - a registered Actions runner (act_runner) for this repo
|
# - a registered Actions runner (act_runner) for this repo
|
||||||
#
|
#
|
||||||
@@ -34,9 +34,8 @@ jobs:
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# Trim the secret: a stray newline from pasting silently breaks
|
# Trim the secret: a stray newline from pasting silently breaks
|
||||||
# oauth2 basic-auth. Fail loudly when it is missing entirely.
|
# oauth2 basic-auth. Fail loudly when it is missing entirely.
|
||||||
: "${PORTING_TOKEN:?PORTING_TOKEN secret is not set}" || exit 1
|
: "${PORTING_KEY:?PORTING_KEY secret is not set}" || exit 1
|
||||||
PORTING_TOKEN="$(printf '%s' "${PORTING_TOKEN}" | tr -d '[:space:]')"
|
URL="https://oauth2:${PORTING_KEY}@git.freno.me/Mike/${OMP_REPO}.git"
|
||||||
URL="https://oauth2:${PORTING_TOKEN}@git.freno.me/Mike/${OMP_REPO}.git"
|
|
||||||
# The omp checkout lives in $RUNNER_TEMP, outside the pi checkout:
|
# The omp checkout lives in $RUNNER_TEMP, outside the pi checkout:
|
||||||
# the port script refuses to write into a subdirectory of its own
|
# the port script refuses to write into a subdirectory of its own
|
||||||
# source (cpSync would recurse into itself).
|
# source (cpSync would recurse into itself).
|
||||||
|
|||||||
Reference in New Issue
Block a user