-
Notifications
You must be signed in to change notification settings - Fork 7
80 lines (72 loc) · 2.68 KB
/
pre-release.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Pre-release updates
on:
workflow_dispatch:
inputs:
restateVersion:
description: 'Restate version (without prepending v). The Restate repository must have the tag already!'
required: true
type: string
sdkTypescriptVersion:
description: 'sdk-typescript version (without prepending v).'
required: true
type: string
tourVersion:
description: 'tour version (without prepending v).'
required: true
type: string
jobs:
updates:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout documentation
uses: actions/checkout@v3
- name: Checkout Restate
uses: actions/checkout@v3
with:
repository: restatedev/restate
ref: v${{ inputs.restateVersion }}
token: ${{ secrets.RESTATE_READ_ACCESS }}
path: temp-restate
# We need rust, protoc and just to compile the runtime to generate the docs
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install protoc
uses: ./.github/actions/install-protoc
- name: Setup just
uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Update the doc config file
- name: Update restate.config.json with new runtime version
uses: jossef/[email protected]
with:
file: restate.config.json
field: RESTATE_DIST_VERSION
value: ${{ inputs.restateVersion }}
- name: Update restate.config.json with new sdk version
uses: jossef/[email protected]
with:
file: restate.config.json
field: TYPESCRIPT_SDK_VERSION
value: ${{ inputs.sdkTypescriptVersion }}
- name: Update restate.config.json with new tour version
uses: jossef/[email protected]
with:
file: restate.config.json
field: TOUR_VERSION
value: ${{ inputs.tourVersion }}
- name: Run the runtime generate script
run: |
./tools/generate.sh temp-restate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: "[GithubActions] Update Restate '${{ inputs.restateVersion }}' SDK-Typescript '${{ inputs.sdkTypescriptVersion }}' Tour '${{ inputs.tourVersion }}'"
commit-message: "[GithubActions] Update Restate '${{ inputs.restateVersion }}' SDK-Typescript '${{ inputs.sdkTypescriptVersion }}' Tour '${{ inputs.tourVersion }}'"
add-paths: |
restate.config.json
static/schemas/*
docs/references/*