--- when: branch: dev event: [push] clone: git: image: woodpeckerci/plugin-git settings: skip_verify: true partial: true steps: "version:update": image: bitnami/git:2.43.0 commands: - echo "$CI_COMMIT_MESSAGE" | ./version-auto-update.sh - git config --global http.sslVerify false - git remote set-url origin "https://$CI_COMMIT_AUTHOR:$GIT_PAT@$(echo $CI_REPO_CLONE_URL | cut -b9-)" - "git config --global user.name $CI_COMMIT_AUTHOR" - "git config --global user.email $CI_COMMIT_AUTHOR_EMAIL" - "if ! git diff --exit-code; then git commit -am \"chore: auto update version [skip ci]\" ; else echo nothing to do ; fi" # - "git commit -am \"chore: auto update version [skip ci]\"" - "git push origin HEAD:dev" secrets: [git_pat] depends_on: - "lint_general"