Authenticate host LFS fetch in DEV workflow
Deploy DEV Workshop / deploy-dev-workshop (push) Successful in 17s
Deploy DEV Workshop / deploy-dev-workshop (push) Successful in 17s
This commit is contained in:
@@ -21,6 +21,8 @@ jobs:
|
||||
env:
|
||||
GIT_SHA: ${{ github.sha }}
|
||||
GIT_BEFORE: ${{ github.event.before }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
|
||||
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
|
||||
STEAM_DEV_ITEM_ID: ${{ secrets.STEAM_DEV_ITEM_ID }}
|
||||
@@ -33,6 +35,8 @@ jobs:
|
||||
-e BRAF_CI_STAGE_DIR \
|
||||
-e GIT_BEFORE \
|
||||
-e GIT_SHA \
|
||||
-e GITEA_TOKEN \
|
||||
-e GITHUB_TOKEN \
|
||||
-e HOST_CACHE \
|
||||
-e HOST_REPO \
|
||||
-e STEAM_APP_ID \
|
||||
@@ -88,11 +92,19 @@ jobs:
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
configure_git_auth() {
|
||||
local token="${GITEA_TOKEN:-${GITHUB_TOKEN:-}}"
|
||||
if [[ -n "$token" ]]; then
|
||||
git remote set-url origin "https://x-access-token:${token}@git.valmo.dev/projectbraf/braf.git"
|
||||
fi
|
||||
}
|
||||
|
||||
install_runtime
|
||||
install_mikero
|
||||
|
||||
cd /repo
|
||||
git config --global --add safe.directory /repo
|
||||
configure_git_auth
|
||||
git lfs install --local
|
||||
git fetch --no-tags origin "$GIT_SHA" || git fetch --no-tags origin main
|
||||
|
||||
|
||||
Reference in New Issue
Block a user