update universal
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 17s
All checks were successful
Build, Push, Publish / Build & Release (push) Successful in 17s
This commit is contained in:
@@ -35,8 +35,11 @@ jobs:
|
||||
run: |
|
||||
if [ -f Dockerargs ]; then
|
||||
echo "Dockerargs found. Checking upstream..."
|
||||
REPO_URL=$(git config -f Dockerargs --get repo.url)
|
||||
REPO_BRANCH=$(git config -f Dockerargs --get repo.branch || echo "main")
|
||||
echo "Dockerargs found. Checking upstream..."
|
||||
# Parse repo info using awk to avoid git config restrictions on underscores in keys elsewhere in the file
|
||||
REPO_URL=$(awk -F '=' '/\[repo\]/{flag=1; next} /\[/{flag=0} flag && /^url=/{print $2}' Dockerargs | tr -d ' \r\n')
|
||||
REPO_BRANCH=$(awk -F '=' '/\[repo\]/{flag=1; next} /\[/{flag=0} flag && /^branch=/{print $2}' Dockerargs | tr -d ' \r\n')
|
||||
if [ -z "$REPO_BRANCH" ]; then REPO_BRANCH="main"; fi
|
||||
|
||||
# Fetch upstream SHA
|
||||
if [ -n "$REPO_URL" ]; then
|
||||
|
||||
Reference in New Issue
Block a user