cibuilds / github

Docker image containing tools to interact with GitHub during a Continuous Integration (CI) build.
https://hub.docker.com/r/cibuilds/github/
MIT License
4 stars 1 forks source link

Error command -c e -delete #8

Closed onimur closed 4 years ago

onimur commented 4 years ago

Hello, I appreciate the work with this repository, used in many projects. Since today, the coma -c and -delete are not being recognized.

==> Create a new release / bin / bash: line 8: -c: command not found Exited with code exit status 127

and

==> Create a new release / bin / bash: line 9: -delete: command not found Exited with code exit status 127

After that, the pipeline enters a loop with the following commit messages: untagged-94fed5bdc337a462ce35, the value of which varies. I need to go to the project settings in the circleci and stop them manually.

I have this config.yml:

version: 2.1 # Use 2.1 to enable using orbs and other features.

jobs:
  publish-github-release:
    docker:
      - image: cibuilds/github:0.13

      - run:
          name: Publish Release on GitHub
          command: | 
            DATE=$(date +'%m-%d-%y')
            printf -v BODY "$(curl -s 'https://raw.githubusercontent.com/onimur/circleci-github-changelog-generator/master/docs/RELEASE_TEMPLATE.md')" "${CIRCLE_PROJECT_REPONAME}" "${DATE}" "${CIRCLE_TAG}" "${CIRCLE_BUILD_NUM}" "${CIRCLE_BUILD_URL}"
            ghr \
            -t ${GITHUB_TOKEN} \
            -u ${CIRCLE_PROJECT_USERNAME} \
            -r ${CIRCLE_PROJECT_REPONAME}  \
            -b "${BODY}" \ 
            -c ${CIRCLE_SHA1}  \
            -delete ${CIRCLE_TAG}

workflows:
  build_and_test:
    jobs: 
      - publish-github-release:
          context: main-context
          filters:
            branches:
              ignore: /.*/
            tags:
              only: /.*/ # for all tags       

Have any suggestion?

Errors

onimur commented 4 years ago

I don't know how, but it worked again.