Trigger a GitHub action workflow directly from a Confluence page and capture the execution result

Basavaraj _
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 17, 2024

I am working on functional testing activities and am looking to trigger a GitHub Action workflow by sending 2-3 input parameters from a Confluence page. Once the workflow execution is completed, it should read the results from GitHub Actions and write the same report on the Confluence page. This way, anyone can visit the Confluence page, trigger the functional test cases workflow, and obtain the report.

 

Any thoughts on this?

 

Thanks,

Basavaraj

1 answer

0 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 15, 2024

Hi @Basavaraj _ 

Create a GitHub Action workflow that accepts input parameters through workflow_dispatch.

  • Then, use the GitHub API to trigger the workflow from a Confluence page, passing necessary parameters.
  • A script or macro in Confluence can facilitate this API call. Next, utilize GitHub Actions to write results to a file or send them via API.
  • Fetch the workflow results using the GitHub API, parse the results, and update the Confluence page content using the Confluence REST API.

Additional tip, Automation tools like Zapier or custom scripts can streamline this process.

With the proper authentication and permissions for both GitHub and Confluence APIs – you are all good to implement this.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events