1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00
budibase/.github/workflows/check-oss-contributor.yml

36 lines
1,020 B
YAML
Raw Normal View History

2023-11-18 06:44:06 +13:00
name: OSS contributor checks
on:
workflow_dispatch:
schedule:
- cron: "0 8,16 * * 1-5" # on weekdays at 8am and 4pm
jobs:
2023-11-20 21:52:00 +13:00
run-checks:
2023-11-18 06:44:06 +13:00
name: Publish server and worker docker images
uses: ./.github/workflows/budibase_ci.yml
with:
run_as_oss: true
secrets: inherit
2023-11-20 21:52:00 +13:00
notify-error:
2023-11-20 21:58:43 +13:00
needs: ["run-checks"]
if: ${{ failure() }}
2023-11-20 21:52:00 +13: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:
2023-11-20 22:05:25 +13:00
webhook-url: ${{ secrets.OSS_CHECKS_WEBHOOK_URL }}
2023-11-20 21:58:09 +13:00
embed-title: 🚨 OSS checks failed in master
2023-11-20 21:56:37 +13:00
embed-url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
embed-description: |
Git sha: `${{ steps.set_sha.outputs.sha }}`