forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1.18 KB
/
buildchecker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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