Update .gitlab-ci.yml file

This commit is contained in:
Kewbit 2024-11-27 23:15:09 +00:00
parent 4240bbd24c
commit 739ec7c145

View file

@ -11,12 +11,13 @@ update_patched_master:
- patched_changes - patched_changes
script: script:
- apk add --no-cache git - apk add --no-cache git
- echo "Cloning repository locally..." - echo "Setting up Git repository locally..."
- git fetch --all
- git clone ${CI_PROJECT_DIR} /tmp/repo - git clone ${CI_PROJECT_DIR} /tmp/repo
- cd /tmp/repo - cd /tmp/repo
- echo "Fetching all branches..."
- git fetch origin
- echo "Checking out patched_master branch..." - echo "Checking out patched_master branch..."
- git checkout patched_master || git checkout -b patched_master - git checkout patched_master || git checkout -b patched_master
- echo "Resetting patched_master to patched_changes..." - echo "Resetting patched_master to patched_changes..."
- git reset --hard origin/patched_changes - git reset --hard origin/HEAD
- echo "Pushing updated patched_master branch..."
- git push origin patched_master --force