Merge pull request #387 from flatcar-linux/kai/checkout-test

.github: Specify remote when checking out c-o/p-s ref in workflow
This commit is contained in:
Kai Lüke 2022-07-18 20:33:51 +02:00 committed by GitHub
commit a21daa36c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ jobs:
[[ "$REMOTE" == "https:*" ]] || REMOTE="https://github.com/${COREOS_REMOTE}"
git -C "$REPO_PATH" remote add test "$REMOTE"
git -C "$REPO_PATH" fetch test
git -C "$REPO_PATH" checkout "${COREOS_REF}"
git -C "$REPO_PATH" checkout "test/${COREOS_REF}"
fi
if [ "${PORTAGE_REMOTE}" != "" -a "${PORTAGE_REF}" != "" ]
@ -122,7 +122,7 @@ jobs:
[[ "$REMOTE" == "https:*" ]] || REMOTE="https://github.com/${PORTAGE_REMOTE}"
git -C "$REPO_PATH" remote add test "$REMOTE"
git -C "$REPO_PATH" fetch test
git -C "$REPO_PATH" checkout "${PORTAGE_REF}"
git -C "$REPO_PATH" checkout "test/${PORTAGE_REF}"
fi
- name: Build packages