Giter Club home page Giter Club logo

circleci-trigger-action's People

Contributors

dependabot[bot] avatar promiseofcake avatar xavientois avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

circleci-trigger-action's Issues

Node.js 16 actions are deprecated.

When using: promiseofcake/circleci-trigger-action@v1

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: promiseofcake/circleci-trigger-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Branch variable not being passed correctly

I'm trying to use this action to trigger a CircleCI workflow. I'm setting up things like the sample in the README, however I keep getting 400 errors from CircleCI with the message

data: { message: 'Branch not found' }

I think it's because the environment variable in the branch config isn't getting converted correctly.

Here's my relevant workflow config:

with:
    user-token: ${{ secrets.CIRCLECI_TOKEN }}
    project-slug: foo/bar
    branch: ${GITHUB_REF#refs/heads/}
    payload: '{"demo_deploy_workflow": true}'

and relevant logs:

Run promiseofcake/circleci-trigger-action@v1
  with:
    user-token: ***
    project-slug: foo/bar
    branch: ${GITHUB_REF#refs/heads/}
    payload: {"demo_deploy_workflow": true}
HTTP Error:  Error: Request failed with status code 400
    at createError (/home/runner/work/_actions/promiseofcake/circleci-trigger-action/v1/node_modules/axios/lib/core/createError.js:16:1)
    at settle (/home/runner/work/_actions/promiseofcake/circleci-trigger-action/v1/node_modules/axios/lib/core/settle.js:17:1)
    at IncomingMessage.handleStreamEnd (/home/runner/work/_actions/promiseofcake/circleci-trigger-action/v1/node_modules/axios/lib/adapters/http.js:236:1)
    at IncomingMessage.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  config: {
    url: 'https://circleci.com/api/v2/project/gh/foo/bar/pipeline',
    method: 'post',
    data: '{"branch":"${GITHUB_REF#refs/heads/}","parameters":{"demo_deploy_workflow":true}}',

Does the branch environment variable need to be in a different format?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.