forked from sourcegraph/sourcegraph-public-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.23 KB
/
progress.yml
File metadata and controls
37 lines (37 loc) · 1.23 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
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:
runs-on: ubuntu-latest
name: Report the last 24h of CHANGELOG to the progress channel
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1000
- name: Set up GCP key
run: |
echo ${{ secrets.PROGRESS_BOT_GCP_ACCOUNT_KEY }} | base64 -d > progress-bot-credentials.json
- name: Report to Slack
uses: docker://sourcegraph/progress-bot:latest
env:
SINCE: ${{ github.event.inputs.since || '24h' }}
DRY: ${{ github.event.inputs.dry || 'false' }}
CHANNEL: ${{ github.event.inputs.channel || 'progress' }}
GOOGLE_APPLICATION_CREDENTIALS: progress-bot-credentials.json
SLACK_API_TOKEN: ${{ secrets.PROGRESS_BOT_SLACK_API_TOKEN }}