--- when: branch: dev event: [push] clone: git: image: woodpeckerci/plugin-git@sha256:7af90de3a9aa5dc93cc0d5cd2e67e28cb237d4b8e891ccacfd9031f78f4b05a8 settings: skip_verify: true partial: true steps: "version:update": image: bitnami/git:2.43.0@sha256:3932583adf73c9e7e75232c0a3637fb0ff7833d7a81c858e74468df0dbd89cf1 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"