Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Tinybird CLI

1.0.0

Tinybird CLI

play

Tinybird CLI

Run Tinybird CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Tinybird CLI

uses: alejandromav/tinybird-action-cli@1.0.0

Learn more about this action in alejandromav/tinybird-action-cli

Choose a version

Tinybird GitHub Action

This action allows you to run Tinybird CLI on your project.

Usage

To use the action simply create an *.yml file in the .github/workflows/ directory. Ref. https://docs.github.com/es/actions/learn-github-actions/workflow-syntax-for-github-actions

For example, this will push your latest changes to Tinybird:

name: Push to Tinybird  # feel free to pick your own name

on:
  push:
    branches:
    - master
    - main
    - stable
    - release/v*

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    # Important: This sets up your GITHUB_WORKSPACE environment variable
    - uses: actions/checkout@v2

    - name: Push changes to Tinybird
      # replace "master" with any valid ref
      uses: alejandromav/tinybird-action@master
      with:
        # [required]
        # Tinybird admin token. Please, use Github secrets (https://docs.github.com/en/actions/security-guides/encrypted-secrets)
        token: ${{ secrets.TINYBIRD_TOKEN }}
        # [optional]
        # Arguments to be passed to the Tinybird CLI
        args: "push --push-deps --debug"

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT.