ci: ensure that main branch is fetched for changelog check job

Jonas Schäfer created

skip-changelog, as this doesn't touch library code.

Change summary

.gitlab-ci.yml | 1 +
1 file changed, 1 insertion(+)

Detailed changes

.gitlab-ci.yml 🔗

@@ -82,6 +82,7 @@ changelog-update:
     - apk add --no-cache python3 git
     - python3 --version
     - git version
+    - git fetch origin main
     - git log --oneline "${CI_MERGE_REQUEST_DIFF_BASE_SHA}.." --
     - python3 .forgejo/workflows/check-changelog.py
   rules: