Skip to content
Snippets Groups Projects
Commit aa1f4619 authored by FAZELI SHAHROUDI Sepehr (INTERN)'s avatar FAZELI SHAHROUDI Sepehr (INTERN)
Browse files

Refactor GitLab CI script: improve conditional formatting and streamline commit message

parent 9c5f689b
No related branches found
No related tags found
1 merge request!4Draft: Review Branch with all changes from main against empty
......@@ -73,11 +73,12 @@ deploy_to_wiki:
- echo "Listing files in wiki directory"
- ls -la
- git add .
- if git diff-index --quiet HEAD; then
echo "No changes to commit";
- |
if git diff-index --quiet HEAD; then
echo "No changes to commit"
else
git commit -m "Update Wiki with Thesis - $(date)"
git push "https://oauth2:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.wiki.git" HEAD:main -o ci.skip;
git push "https://oauth2:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.wiki.git" HEAD:main -o ci.skip
fi
only:
- main
......
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