Merge pull request 'Update .woodpecker/build.yml' (#8) from dev into master
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/tag/build-dev Pipeline was successful
ci/woodpecker/tag/build Pipeline was successful
Pipeline failed
ci/woodpecker/manual/build Pipeline was successful
ci/woodpecker/cron/build Pipeline failed

Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
2023-08-24 23:05:47 +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: