mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-24 12:34:10 +03:00
7b467822f1
Ignore ci job if no change in tinybird
35 lines
867 B
YAML
35 lines
867 B
YAML
name: CI Tinybird
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check for changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@v11
|
|
with:
|
|
files: |
|
|
package.json
|
|
packages/twenty-tinybird/**
|
|
|
|
- name: Skip if no relevant changes
|
|
if: steps.changed-files.outputs.any_changed == 'false'
|
|
run: echo "No relevant changes. Skipping CI."
|
|
|
|
- name: Check twenty-tinybird package
|
|
uses: tinybirdco/ci/.github/workflows/ci.yml@main
|
|
with:
|
|
data_project_dir: packages/twenty-tinybird
|
|
tb_admin_token: ${{ secrets.TB_ADMIN_TOKEN }}
|
|
tb_host: https://api.eu-central-1.aws.tinybird.co
|