You've already forked woodpecker
							
							
				mirror of
				https://github.com/woodpecker-ci/woodpecker.git
				synced 2025-10-30 23:27:39 +02:00 
			
		
		
		
	Fix indentation and identification (#3111)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user