-
Notifications
You must be signed in to change notification settings - Fork 17
60 lines (51 loc) · 1.5 KB
/
update-develop.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
49
50
51
52
53
54
55
56
57
58
59
60
name: Update SATySFi Dev Flow
on:
schedule:
- cron: '52 15 * * *'
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: Setup OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.12
dune-cache: true
opam-pin: false
- name: Install OCaml dependencies
run: |
opam install ocamlfind shexp
- name: Add the latest SATySFi
run: |
eval $(opam env)
./scripts/add-satysfi
- name: Update the develop snapshot
run: |
eval $(opam env)
scripts/update-snapshot-satysfi --opam snapshot-develop.opam
- 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: Update develop snapshots
branch: update-develop-snapshot
title: '[Automated] Update develop snapshot'
body: |
Update develop snapshot
labels: |
automated pr
assignees: na4zagin3
reviewers: na4zagin3