-
Notifications
You must be signed in to change notification settings - Fork 21
38 lines (36 loc) · 1.1 KB
/
generate-cred.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
35
36
37
38
name: generate-cred
on:
# Trigger on merging to master.
push:
branches:
- master
# As well as every 6 hours.
schedule:
- cron: 0 */6 * * *
jobs:
GenerateCred:
name: Generate Cred
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: SourceCred Cache
uses: actions/cache@v1
with:
# cred-action uses *workspace*/sourcecred_data as it's SOURCECRED_DIRECTORY. Only store the cache from that.
path: sourcecred_data/cache
key: SC_CACHE-${{ hashFiles('**/project.json') }}-${{ github.run_id }}
restore-keys: |
SC_CACHE-${{ hashFiles('**/project.json') }}-
SC_CACHE-
- name: Run SourceCred
uses: vsoch/cred-action@wip-discord-cache
env:
token: ${{ secrets.GITHUB_TOKEN }}
SOURCECRED_DISCORD_TOKEN: ${{ secrets.SOURCECRED_DISCORD_TOKEN }}
with:
weights: weights.json
project: "@metagame"
project-file: project.json
branch-against: master
automated: true