convictional / trigger-workflow-and-wait

Trigger a workflow in another (or same) repository and wait for the job to finish.
MIT License
319 stars 150 forks source link

always getting 404 when triggering the downstream job #54

Closed kalkir closed 2 years ago

kalkir commented 2 years ago

Hi,

When I tried to trigger another repo job, I am always getting 404, I have manually run the job using curl command to https://api.github.com it executed well. I am using correct github token, owner, user.

when I looked the entrypoint script the curl command is different, I had to pass -d '{"ref":"main"}', headers that I am passing are -H "Authorization: token ", -H "Accept: application/vnd.github.v3+json" , I noticed in the entrypoint it is using Bearer token. Can you help me to resolve the issue.

rabih commented 2 years ago

@kalkir are you passing the authorization header as "Authorization: token <insert github/bearer token>"?

kalkir commented 2 years ago

Yes, that is correct.

On Wed, Aug 10, 2022, 3:46 AM Rabih Salamey @.***> wrote:

@kalkir https://github.com/kalkir are you passing the authorization header as `"Authorization: token <insert github/bearer token>"?

— Reply to this email directly, view it on GitHub https://github.com/convictional/trigger-workflow-and-wait/issues/54#issuecomment-1209946443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCZPDOKL4W65DYO2KKDGFTVYLKDJANCNFSM55VPZ32Q . You are receiving this because you were mentioned.Message ID: @.***>

rabih commented 2 years ago

Could you supply the curl command (less private details) and provide an example of the call you are submitting?

rabih commented 2 years ago

Gonna close this issue due to inactivity