Skip to content

Commit 1dcafb4

Browse files
no shot?
1 parent 09a20ec commit 1dcafb4

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/tinybird-cd.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,26 @@ on:
66
branches:
77
- main
88
- master
9+
paths:
10+
- 'tinybird/**'
911

1012
concurrency: ${{ github.workflow }}-${{ github.event.ref }}
1113

12-
env:
13-
TINYBIRD_HOST: ${{ secrets.TINYBIRD_HOST }}
14-
TINYBIRD_TOKEN: ${{ secrets.TINYBIRD_TOKEN }}
15-
1614
jobs:
1715
cd:
1816
name: Deploy
1917
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
working-directory: 'tinybird'
2021
steps:
2122
- uses: actions/checkout@v3
2223

2324
- name: Install Tinybird CLI
2425
run: curl https://tinybird.co | sh
2526

2627
- name: Deploy project
28+
with:
29+
TINYBIRD_HOST: ${{ secrets.TINYBIRD_HOST }}
30+
TINYBIRD_TOKEN: ${{ secrets.TINYBIRD_TOKEN }}
2731
run: tb --cloud --host "${{ env.TINYBIRD_HOST }}" --token "${{ env.TINYBIRD_TOKEN }}" deploy

.github/workflows/tinybird-ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,19 @@ on:
66
branches:
77
- main
88
- master
9+
paths:
10+
- 'tinybird/**'
911
types: [opened, reopened, labeled, unlabeled, synchronize]
1012

1113
concurrency: ${{ github.workflow }}-${{ github.event.pull_request.number }}
1214

13-
env:
14-
TINYBIRD_HOST: ${{ secrets.TINYBIRD_HOST }}
15-
TINYBIRD_TOKEN: ${{ secrets.TINYBIRD_TOKEN }}
16-
1715
jobs:
1816
ci:
1917
name: Validate
2018
runs-on: ubuntu-latest
2119
defaults:
2220
run:
23-
working-directory: '.'
21+
working-directory: 'tinybird'
2422
services:
2523
tinybird:
2624
image: tinybirdco/tinybird-local:latest
@@ -39,4 +37,7 @@ jobs:
3937
run: tb test run
4038

4139
- name: Deployment check
40+
with:
41+
TINYBIRD_HOST: ${{ secrets.TINYBIRD_HOST }}
42+
TINYBIRD_TOKEN: ${{ secrets.TINYBIRD_TOKEN }}
4243
run: tb --cloud deploy --check

0 commit comments

Comments
 (0)