Fix attempt
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
variables:
|
||||
GIT_STRATEGY: clone
|
||||
|
||||
stages:
|
||||
- generate-readme
|
||||
|
||||
@@ -11,8 +14,6 @@ generate_readme_job:
|
||||
echo "Skipping job for automated commit."
|
||||
exit 0
|
||||
fi
|
||||
- git config --global user.email "ci@gitlab.ms-ds.org"
|
||||
- git config --global user.name "GitLab CI"
|
||||
- git checkout main
|
||||
- git status
|
||||
- python scripts/generate_readme.py
|
||||
@@ -21,11 +22,12 @@ generate_readme_job:
|
||||
- echo $NEEDS_UPDATE
|
||||
- |
|
||||
if [ $NEEDS_UPDATE = "true" ]; then
|
||||
git remote remove origin
|
||||
git remote add origin https://$CI_USER:$CI_TOKEN@gitlab.ms-ds.org/schmoekerei/schmoekerei-icons.git
|
||||
git remote set-url origin https://$CI_USER:$CI_TOKEN@gitlab.ms-ds.org/schmoekerei/schmoekerei-icons.git
|
||||
git add README.md
|
||||
git config --global user.email "ci@gitlab.ms-ds.org"
|
||||
git config --global user.name "GitLab CI"
|
||||
git commit -m "Auto-updated README"
|
||||
git push origin HEAD:main
|
||||
git push -o ci.skip origin HEAD:main
|
||||
fi
|
||||
only:
|
||||
- main
|
||||
|
||||
Reference in New Issue
Block a user