You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Push Workflow Data to Tinybird
v3.1.0
This GitHub action enables you to send GitHub workflow run statistics to Tinybird. The format in which the data is sent is as follows:
{
"run_id": "The GitHub run ID as a string",
"start": "The start time of the workflow run",
"end": "The time of the execution of the action (end of the run)",
"commit": "The commit hash of the commit the workflow is executed on",
"branch": "The branch on which the workflow is executed",
"workflow": "The name of the workflow",
"repository": "The repository in the format <owner>/<repo-name>",
"attempt": "The number of the run attempt"
"outcome": "'failure' if at least one job failed, 'success' otherwise"
}
Add this action as the last step of your last job, provide the automatic GITHUB_TOKEN
secret,
your Tinybird token and the Event API endpoint to which to push the data
steps:
- uses: localstack/tinybird-workflow-push@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tinybird_token: ${{ secrets.TINYBIRD_TOKEN }}
tinybird_datasource: <your-data-source>
workflow_id: <custom-workflow-id>
Required: This token is used to access the GitHub API to access the start time of the workflow run.
Required: This token is used to authenticate with Tinybird.
Optional: This is the endpoint to which the workflow run data should be pushed to. (default: ci_workflows
)
Optional: This is the ID of the workflow sent to tinybird. (default: the output of github.context.workflow
)