The Action IFTTT-Status will sent the status of a GitHub Workflow after it ran to an IFTTT WebHook of your choice. It it is intended to be used with Notifications, but you can use the values shown below in any applet.
Note: The Action will only send a request to your WebHook if the Workflow succeeded or failed, not if it is cancelled.
To get started include this at the end of your Workflow .yml file (make sure to use your own values below or add them as secrets):
uses: betahuhn/[email protected]
with:
event: ${{ secrets.EVENT }} # your-webhook-event
key: ${{ secrets.TOKEN }} # your-webhook-secret-key
status: ${{ job.status }} # do not change
IFTTT-Status will sent these values as the body of request:
field | On success | On failure |
---|---|---|
value1 | WORKFLOW_NAME succeeded | WORKFLOW_NAME failed |
value2 | The Workflow WORKFLOW_NAME on the Repo REPO_NAME finished without any errors. | The Workflow WORKFLOW_NAME on the Repo REPO_NAME did not finish without any errors. |
value3 | Link to the Workflow | Link to the Workflow |
- Custom success and failure messages
Run yarn build
or npm run build
to produce a production version of the action in the dist
folder.
Copyright 2020 Maximilian Schiller
This project is licensed under the MIT License - see the LICENSE file for details