Send slack notification with BQ results.
name: Run SQL against BQ and notify slack
on:
schedule:
- cron: '0 10 * * *' # run every day at 10:00
jobs:
bq2slack:
runs-on: ubuntu-latest
name: Execute SQL query and send results to Slack
steps:
- name: Run
uses: data-i-consulting/bq2slack-github-action@v1.0.6 # use the latest tag
with:
slack_webhook: ${{secrets.SLACK_WEBHOOK}}
gcp_service_account: ${{secrets.GCP_SERVICE_ACCOUNT}}
sql: |
WITH something AS (
SELECT 1 as my_number
)
SELECT * FROM something
npm i
npm run start
npm i
npm run build