mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:31:47 +00:00
35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
# See dev/buildchecker/README.md
|
|
name: buildchecker
|
|
on:
|
|
schedule:
|
|
- cron: '*/15 * * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run:
|
|
if: github.repository == 'sourcegraph/sourcegraph'
|
|
runs-on: ubuntu-latest
|
|
|
|
# secrets for this workflow are configured in the 'autobuildsherrif' environment.
|
|
# 'autobuildsherrif' was the original name of the 'buildchecker' tool - GitHub does
|
|
# not provide a simple way to do a rename, so we leave it as is for now.
|
|
environment: autobuildsherrif
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-go@v4
|
|
with: { go-version: '1.22' }
|
|
- run: ./dev/buildchecker/run-check.sh
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.AUTOBUILDSHERRIF_GITHUB_TOKEN }}
|
|
BUILDKITE_TOKEN: ${{ secrets.AUTOBUILDSHERRIF_BUILDKITE_TOKEN }}
|
|
SLACK_ANNOUNCE_WEBHOOK: ${{ secrets.AUTOBUILDSHERRIF_SLACK_WEBHOOK }}
|
|
SLACK_DEBUG_WEBHOOK: ${{ secrets.AUTOBUILDSHERRIF_SLACK_DEBUG_WEBHOOK }}
|
|
SLACK_TOKEN: ${{ secrets.AUTOBUILDSHERRIF_SLACK_TOKEN }}
|
|
|
|
report_failure:
|
|
needs: run
|
|
if: ${{ failure() }}
|
|
uses: sourcegraph/sourcegraph/.github/workflows/report-job-failure.yml@main
|
|
secrets: inherit
|