Browse Source

found bug if repo is empty

master
Daniel Huebleitner 5 years ago
parent
commit
348819d552
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      .drone.yml

+ 2
- 2
.drone.yml View File

52
   image: node:12
52
   image: node:12
53
   commands:
53
   commands:
54
   - echo ${DRONE_BUILD_CREATED}
54
   - echo ${DRONE_BUILD_CREATED}
55
-  - git clone https://www.versioncontrol.me/frontwork-documentation/${DRONE_REPO_NAME}.git && cd ${DRONE_REPO_NAME} && rm -rf ./*; cp -r ../docs/* .
55
+  - git clone https://www.versioncontrol.me/frontwork-documentation/${DRONE_REPO_NAME}.git; cd ${DRONE_REPO_NAME} && rm -rf ./*; cp -r ../docs/* .
56
   - sed -i '1,3d; $d' README.md && echo "### Version\n\n${DRONE_TAG}\n" >> ./README.md
56
   - sed -i '1,3d; $d' README.md && echo "### Version\n\n${DRONE_TAG}\n" >> ./README.md
57
   - sed -i -e 1,4d ./globals.md && cat ./globals.md >> ./README.md
57
   - sed -i -e 1,4d ./globals.md && cat ./globals.md >> ./README.md
58
-  - git -c user.email="${DRONE_COMMIT_AUTHOR_EMAIL}" -c user.name="${DRONE_COMMIT_AUTHOR}" commit --all --allow-empty --message "generated from tag ${DRONE_TAG}"
58
+  - git add --all; git -c user.email="${DRONE_COMMIT_AUTHOR_EMAIL}" -c user.name="${DRONE_COMMIT_AUTHOR}" commit --all --allow-empty --message "generated from tag ${DRONE_TAG}"
59
   - git tag ${DRONE_TAG} && git push --force origin master ${DRONE_TAG}
59
   - git tag ${DRONE_TAG} && git push --force origin master ${DRONE_TAG}
60
   environment:
60
   environment:
61
     GIT_USER:
61
     GIT_USER:

Loading…
Cancel
Save