Fix update workflow

This commit is contained in:
Charlotte Van Petegem 2023-01-28 13:31:31 +01:00
parent 5d15689eec
commit 2f174725fe
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -38,8 +38,11 @@ commit-and-push:
needs:
- job: update-flake-lock
artifacts: true
- job: build
- job: build-nixos-configurations
script:
- url_host=`git remote get-url origin | sed -e "s/https:\/\/gitlab-ci-token:.*@//g"`
- git remote set-url origin "https://gitlab-ci-token:${CI_PUSH_TOKEN}@${url_host}"
- git add flake.lock
- git commit -m "Update dependencies"
- git push origin $CI_COMMIT_BRANCH