{"repo":"probot/adapter-github-actions","free":true,"listed":false,"github":"https://github.com/probot/adapter-github-actions","clone":"git clone https://github.com/probot/adapter-github-actions.git","description":":electric_plug: An adapter that takes a Probot app and makes it compatible with GitHub Actions","language":"JavaScript","stars":91,"topics":["probot","github-actions","nodejs","probot-adapter"],"license":"ISC","category":"workflow-automation","readme_excerpt":":electric plug: @probot/adapter-github-actions Adapter to run a Probot application function in GitHub Actions Usage Create your Probot Application as always Then in the entrypoint of your GitHub Action, require @probot/adapter-github-actions instead of probot Then use index.js as your entrypoint in the action.yml file Important : Your external dependencies will not be installed, you have to either vendor them in by committing the contents of the node modules folder, or compile the code to a single executable script (recommended). See GitHub's documentation For an example Probot App that is continuously published as GitHub Action, see https://github.com/probot/example-github-action#readme How it works Probot is a framework for building GitHub Apps, which is different to creating GitHub Actions in many ways, but the functionality is the same: Both get notified about events on GitHub, which you can act on. While a GitHub App gets notified about a GitHub event via a webhook request sent by GitHub, a GitHub Action can receive the event payload by reading a JSON file from the file system. We can abstract away the differences, so the same hello world example app shown above works in both environments. Relevant differences for Probot applications: 1. You cannot authenticate as the app. The probot instance you receive is authenticated using a GitHub token. In most cases the token will be set to secrets.GITHUB TOKEN , which is an installation access token. The provided GITHUB TOKEN exp","default_branch":null,"files":null,"tree":[],"storefront":"/r/probot","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/probot/adapter-github-actions/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}