-
Notifications
You must be signed in to change notification settings - Fork 17
48 lines (44 loc) · 1.19 KB
/
snapshot.yaml
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
42
43
44
45
46
47
48
name: Snapshot Update Flow
on:
schedule:
- cron: '52 5 * * *'
jobs:
update-snapshot:
name: Update snapshots
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.SG_REPO_GH_APP_ID }}
private_key: ${{ secrets.SG_REPO_GH_APP_PRIV_KEY }}
- name: Debug output 1
run: |
git log -n 10
- name: Take snapshots
run: |
./scripts/take-snapshot
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
id: cpr
with:
# token: ${{ secrets.REPO_PUBLIC }}
token: ${{ steps.generate-token.outputs.token }}
commit-message: Take snapshots
branch: take-snapshots
title: '[Automated] Take snapshots'
body: |
Take snapshots
labels: |
snapshot
automated pr
assignees: na4zagin3
reviewers: na4zagin3
# team-reviewers: |
# owners
# maintainers