-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (39 loc) · 1.21 KB
/
new_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
name: CI new release
on:
workflow_dispatch:
inputs:
version:
description: Released new version of Realm (0.X.0).
required: true
type: string
jobs:
prepare-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Upgrade dependencies
run: .github/workflows/ci.sh --upgrade
shell: bash
- name: Install realm_dart
run: .github/workflows/ci.sh --install
shell: bash
- name: Generate realm models
run: .github/workflows/ci.sh --generate
shell: bash
- name: Run dart projects
run: .github/workflows/ci.sh --run
shell: bash
- name: Create upgrade version PR
uses: peter-evans/[email protected]
with:
branch: release/${{ inputs.version }}
base: main
title: '[Realm version upgrade ${{ inputs.version }}]'
draft: false
body: An automated PR for released realm version.
commit-message: Update samples with realm ${{ inputs.version }}
token: ${{ secrets.REALM_CI_PAT }}