25 lines
700 B
YAML
25 lines
700 B
YAML
---
|
|
when:
|
|
branch: dev
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
skip_verify: true
|
|
partial: true
|
|
|
|
steps:
|
|
"version:update":
|
|
image: bitnami/git:2.42.1
|
|
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"
|
|
- "git commit -am \"chore: auto update version [skip ci]\""
|
|
- "git push origin HEAD:dev"
|
|
secrets: [git_pat]
|
|
depends_on:
|
|
- "lint_general"
|