Fix indentation and identification (#3111)

This commit is contained in:
qwerty287 2024-01-03 18:33:31 +01:00 committed by GitHub
parent 7c4a61a17f
commit 1742fb2b97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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