Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Restrict tinybird reporting to master branch only #12627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/aws-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ on:
type: choice
description: Loglevel for PyTest
options:
- DEBUG
- INFO
- WARNING
- ERROR
- CRITICAL
- DEBUG
- INFO
- WARNING
- ERROR
- CRITICAL
default: WARNING

env:
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
# push image on master, target branch not set, and the dependent steps were either successful or skipped
# TO-DO: enable job after workflow in CircleCI is disabled
if: false
# if: github.ref == 'refs/heads/master' && !failure() && !cancelled()
# if: github.ref == 'refs/heads/master' && !failure() && !cancelled()
needs:
# all tests need to be successful for the image to be pushed
- test
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:

push-to-tinybird:
name: Push Workflow Status to Tinybird
if: always() # && github.ref == 'refs/heads/master'
if: always() && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs:
- test
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/aws-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ env:
CI_COMMIT_BRANCH: ${{ github.head_ref || github.ref_name }}
CI_COMMIT_SHA: ${{ github.sha }}
CI_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}
# report to tinybird if executed on master on ext AND community (targetRef not set) AND additional environment variables/pytest args are not set.
# TINYBIRD_PYTEST_ARGS: "${{ github.ref == 'refs/heads/master' && '--report-to-tinybird ' || '' }}"
TINYBIRD_PYTEST_ARGS: '--report-to-tinybird '
# report to tinybird if executed on master
TINYBIRD_PYTEST_ARGS: "${{ github.ref == 'refs/heads/master' && '--report-to-tinybird ' || '' }}"



Expand Down
Loading