Update .woodpecker/build.yml #8

Merged
vista merged 1 commits from dev into master 2023-08-24 23:05:48 +02:00

View File

@@ -2,6 +2,24 @@ when:
branch: master
steps:
update_submodule:
image: woodpeckerci/plugin-git
secrets:
- source: gitea_token
target: GITEA_TOKEN
- source: gitea_user
target: GITEA_USER
commands:
- git submodule update --remote
- if [ ! "$(git status --porcelain)" ]; then echo "no changes"; exit 0; fi
- git config user.name "$${GITEA_USER}"
- git config user.email "$${GITEA_USER}.gitea@narvas.tech"
- git add -A
- git commit -m "update submodules [skip ci]"
- git push "https://$${GITEA_USER}:$${GITEA_TOKEN}@git.narvas.tech/$${CI_REPO}"
when:
cron: nightly
event: [push, tag, deployment, cron, manual]
check_base:
image: vistanarvas/container-update-checker:latest
secrets: