38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
name: Build Report
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# 1pm UTC is 6am PDT.
|
|
- cron: "0 13 * * *"
|
|
|
|
jobs:
|
|
build-report:
|
|
name: Build Report
|
|
timeout-minutes: 5
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/master'
|
|
environment: more-secrets
|
|
steps:
|
|
- name: Checkout Airbyte
|
|
uses: actions/checkout@v2
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install requests slack_sdk pyyaml
|
|
- name: create and send report
|
|
run: python ./tools/bin/build_report.py
|
|
env:
|
|
SLACK_BUILD_REPORT: ${{ secrets.SLACK_BUILD_REPORT }}
|
|
- name: Slack Notification - Failure
|
|
if: failure()
|
|
uses: rtCamp/action-slack-notify@master
|
|
env:
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_BUILD_REPORT }}
|
|
SLACK_USERNAME: Build Report
|
|
SLACK_ICON: https://avatars.slack-edge.com/temp/2020-09-01/1342729352468_209b10acd6ff13a649a1.jpg
|
|
SLACK_COLOR: ${{ job.status }}
|
|
SLACK_TITLE: "Failed to create build report"
|
|
SLACK_MESSAGE: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|
|
MSG_MINIMAL: True
|