woodpecker: probar otra forma de hacer commits
All checks were successful
continuous-integration/drone the build was successful

This commit is contained in:
Cat /dev/Nulo 2021-09-18 15:39:17 -03:00
parent 2948ffcd6f
commit f6106feb5f

View file

@ -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: