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

ci: Correctly checkout repository

parent 4d3a31f2
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ Check Packages:on-schedule: ...@@ -205,7 +205,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 master && \ git checkout -f $CI_DEFAULT_BRANCH && \
wait && \ wait && \
...@@ -242,7 +242,7 @@ Check Packages:on-schedule: ...@@ -242,7 +242,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 master && \ 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