Commit after checkout.
This commit is contained in:
parent
4a1261cd8a
commit
3ebc39835f
1 changed files with 27 additions and 25 deletions
8
.github/actions/build-docs/upload.ros
vendored
8
.github/actions/build-docs/upload.ros
vendored
|
@ -159,6 +159,7 @@ behaviour could be overriden by keyword argument ``:raise t``."
|
|||
((git-repository-was-changed-p)
|
||||
(log:info "Pushing local changes to the repository")
|
||||
|
||||
(flet ((make-commit ()
|
||||
(git "add -u")
|
||||
|
||||
;; We don't want to commit changes to qlfile,
|
||||
|
@ -170,8 +171,7 @@ behaviour could be overriden by keyword argument ``:raise t``."
|
|||
(git "config --global user.name \"github-actions[bot]\"")
|
||||
(git "config --global user.email \"actions@github.com\""))
|
||||
|
||||
(git "commit -m 'Update docs'")
|
||||
|
||||
(git "commit -m 'Update docs'")))
|
||||
(cond
|
||||
((uiop:getenv "GITHUB_HEAD_REF")
|
||||
(let ((ref (uiop:getenv "GITHUB_HEAD_REF")))
|
||||
|
@ -184,11 +184,13 @@ behaviour could be overriden by keyword argument ``:raise t``."
|
|||
;; To push changes back, we need to change
|
||||
;; our HEAD back to the pull-request's reference:
|
||||
(git "checkout " ref)
|
||||
(make-commit)
|
||||
(git "remote add upstream "
|
||||
(get-origin-to-push))
|
||||
(git "push upstream HEAD:" ref)))
|
||||
(t
|
||||
(git "push"))))
|
||||
(make-commit)
|
||||
(git "push")))))
|
||||
;; or
|
||||
(t (log:info "There is no local changes.")))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue