Skip to content
Snippets Groups Projects
Commit ecbc1f1d authored by Griefed's avatar Griefed :joystick:
Browse files

ci: Correctly checkout repository

parent cfe69103
No related branches found
Tags 2.2.3
No related merge requests found
...@@ -101,7 +101,7 @@ Check Packages:on-schedule: ...@@ -101,7 +101,7 @@ Check Packages:on-schedule:
chmod 777 /tmp/package_versions.txt' && \ chmod 777 /tmp/package_versions.txt' && \
# Checkout our branch # Checkout our branch
git --git-dir /tmp/$CI_PROJECT_PATH.git checkout -f main && \ git checkout -f $CI_DEFAULT_BRANCH && \
wait && \ wait && \
...@@ -136,7 +136,7 @@ Check Packages:on-schedule: ...@@ -136,7 +136,7 @@ Check Packages:on-schedule:
if [ "${OLD_CHECKSUM}" != "${NEW_CHECKSUM}" ]; then if [ "${OLD_CHECKSUM}" != "${NEW_CHECKSUM}" ]; then
# Checkout our branch # Checkout our branch
git --git-dir /tmp/$CI_PROJECT_PATH.git checkout -f main && \ git checkout -f $CI_DEFAULT_BRANCH && \
# Copy the new package versions list to repository # Copy the new package versions list to repository
mv -f package_versions_new.txt package_versions.txt && \ mv -f package_versions_new.txt package_versions.txt && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment