woodpecker: probar otra forma de hacer commits
All checks were successful
continuous-integration/drone the build was successful
All checks were successful
continuous-integration/drone the build was successful
This commit is contained in:
parent
2948ffcd6f
commit
f6106feb5f
1 changed files with 2 additions and 4 deletions
|
@ -10,13 +10,11 @@ pipeline:
|
|||
- eval $(ssh-agent -s)
|
||||
- echo "$${GIT_BASE64_SSH_KEY}" | base64 -d | ssh-add -
|
||||
- echo [nulo.in]:420 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHgHIbf5/jkeyLMndnWlEO12DPj41YPqkmz+aIreVOsP >> ~/.ssh/known_hosts
|
||||
- git checkout ${DRONE_BRANCH} # Tenemos que hacer esto porque Woodpecker solo `git reset` ea el commit que quiere.
|
||||
|
||||
- git config user.name Woodpecker
|
||||
- git config user.email ci@nulo.in
|
||||
- git add assets/js/* _data/assets.json
|
||||
- git commit -m "[skip ci] Recompilar JS"
|
||||
- git remote add nulo ssh://_gitea@nulo.in:420/Sutty/sutty-base-jekyll-theme.git
|
||||
- git push -u nulo ${DRONE_BRANCH}
|
||||
- git diff-index --quiet HEAD --ignore-submodules || ( git commit assets/js/ _data/assets.json -m "[skip ci] Recompilar JS" && git push -u nulo ${DRONE_BRANCH} )
|
||||
secrets:
|
||||
- git_base64_ssh_key
|
||||
when:
|
||||
|
|
Loading…
Reference in a new issue