2023-11-17 18:44:06 +01:00
|
|
|
name: OSS contributor checks
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 8,16 * * 1-5" # on weekdays at 8am and 4pm
|
2023-11-17 18:44:39 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- chore/run_oss_checks # TODO: remove
|
2023-11-17 18:44:06 +01:00
|
|
|
|
|
|
|
jobs:
|
2023-11-20 09:52:00 +01:00
|
|
|
run-checks:
|
2023-11-17 18:44:06 +01:00
|
|
|
name: Publish server and worker docker images
|
|
|
|
uses: ./.github/workflows/budibase_ci.yml
|
|
|
|
with:
|
|
|
|
run_as_oss: true
|
|
|
|
secrets: inherit
|
2023-11-20 09:52:00 +01:00
|
|
|
|
|
|
|
notify-error:
|
2023-11-20 09:52:18 +01:00
|
|
|
# needs: ["run-checks"]
|
|
|
|
if: ${{ always() }}
|
2023-11-20 09:52:00 +01:00
|
|
|
name: Notify error
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set commit SHA
|
|
|
|
id: set_sha
|
|
|
|
run: echo "::set-output name=sha::$(git rev-parse --short ${{ github.sha }})"
|
|
|
|
|
|
|
|
- name: Notify error
|
|
|
|
uses: tsickert/discord-webhook@v5.3.0
|
|
|
|
with:
|
|
|
|
webhook-url: ${{ secrets.PROD_DEPLOY_WEBHOOK_URL }}
|
|
|
|
embed-title: "[TEST] OSS checks failed in master"
|
|
|
|
content: "The OSS build is failing on master. SHA: ${{ steps.set_sha.outputs.sha }}, link: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
|