mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 18:01:02 +00:00
Fix indentation and identification (#3111)
This commit is contained in:
parent
7c4a61a17f
commit
1742fb2b97
1 changed files with 11 additions and 9 deletions
|
@ -101,15 +101,15 @@ steps:
|
|||
path: *docker_path
|
||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||
|
||||
version-release:
|
||||
image: *alpine_image
|
||||
commands:
|
||||
- apk add jq
|
||||
- if [[ "${CI_COMMIT_TAG}" != *"rc"* ]] ; then jq '.latest = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp && mv ./docs_repo/version.json.tmp ./docs_repo/version.json ; fi
|
||||
- jq '.rc = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp
|
||||
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
|
||||
when:
|
||||
- event: tag
|
||||
version-release:
|
||||
image: *alpine_image
|
||||
commands:
|
||||
- apk add jq
|
||||
- if [[ "${CI_COMMIT_TAG}" != *"rc"* ]] ; then jq '.latest = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp && mv ./docs_repo/version.json.tmp ./docs_repo/version.json ; fi
|
||||
- jq '.rc = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp
|
||||
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
|
||||
when:
|
||||
- event: tag
|
||||
|
||||
copy-files:
|
||||
image: *alpine_image
|
||||
|
@ -133,6 +133,8 @@ steps:
|
|||
- ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts
|
||||
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa
|
||||
- chmod 0600 $HOME/.ssh/id_rsa
|
||||
- git config --global user.email "woodpecker-bot@obermui.de"
|
||||
- git config --global user.name "woodpecker-bot"
|
||||
- cd ./docs_repo
|
||||
- git add .
|
||||
# exit successfully if nothing changed
|
||||
|
|
Loading…
Reference in a new issue