semaphoreui / semaphore

Modern UI for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.43k stars 1.05k forks source link

Feature: Run Ansible-Semaphore task through Github Actions #1372

Open MarcZijderveld opened 1 year ago

MarcZijderveld commented 1 year ago

I was wondering if anyone has attempted to connect Ansible Semaphore to Github Actions? I would love to be able to do something like:

New PR has been created > Run task in diff / check mode > output changes in Pull Request. When main has been merged > Run task in Ansible Semaphore with main branch.

Would this be possible to achieve or is this a definite no-go?

ansibleguy commented 1 year ago

You could try to utilize Semaphore's API: https://docs.ansible-semaphore.com/administration-guide/api

gulbinas commented 11 months ago

I have created prototype github action that uses semaphore API to start task and poll for a result via websocket: https://github.com/ansible-semaphore/semaphore/discussions/1617

image