forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.38 KB
/
progress.yml
File metadata and controls
41 lines (39 loc) · 1.38 KB
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
35
36
37
38
39
40
41
name: Progress bot
on:
workflow_dispatch:
inputs:
since:
description: 'Time period to report'
required: false
default: '24h'
dry:
description: 'Only output message that would be sent to Slack'
required: false
default: 'false'
channel:
description: 'Slack channel to send message to'
required: false
default: 'progress'
schedule:
- cron: "0 0 * * *" # Every day 00:00 UTC (4pm PST)
jobs:
report-to-slack:
if: github.repository == 'sourcegraph/sourcegraph'
runs-on: ubuntu-latest
name: Report the last 24h of CHANGELOG to the progress channel
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1000
- name: Configure gcloud
uses: google-github-actions/auth@v0
with:
credentials_json: ${{ secrets.PROGRESS_BOT_GCP_ACCOUNT_KEY }}
service_account: 'progress-bot@sourcegraph-dev.iam.gserviceaccount.com'
- name: Report to Slack
uses: docker://sourcegraph/progress-bot:latest@sha256:adbce46dde34527bcb27027a552c76cc0622683297dd935111fe6e1067c53efa
env:
SINCE: ${{ github.event.inputs.since || '24h' }}
DRY: ${{ github.event.inputs.dry || 'false' }}
CHANNEL: ${{ github.event.inputs.channel || 'progress' }}
SLACK_API_TOKEN: ${{ secrets.PROGRESS_BOT_SLACK_API_TOKEN }}