promiseofcake / circleci-trigger-action Goto Github PK
View Code? Open in Web Editor NEWGithub Action to trigger workflow runs via API call in CircleCI.
License: MIT License
Github Action to trigger workflow runs via API call in CircleCI.
License: MIT License
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/.
The node of this library has been upgraded to node16. However the action still fails and Github shows the error as following
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: promiseofcake/circleci-trigger-action@v1
returns Project not found
, was working fine before v1.4
and actions/checkout@v3
change
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?
Hi there,
since release 1.4.1, we are receiving:
Unable to resolve action `promiseofcake/circleci-trigger-action@v1`, unable to find version `v1`
when using:
uses: promiseofcake/circleci-trigger-action@v1
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.