-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (46 loc) · 1.58 KB
/
version.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
name: version
on:
pull_request:
types:
- closed
branches:
- master
jobs:
version_and_tag:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && !contains(github.event.pull_request.title, 'chore(version)')
steps:
- name: Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
fetch-depth: 0
- name: Setup Git User
uses: fregante/setup-git-user@77c1b5542f14ab6db4b8462d6857e31deb988b09
- name: Setup Flutter
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: "stable"
flutter-version: "3.10.2"
cache: true
- name: Setup Melos
uses: bluefireteam/melos-action@dd3c344d731938d2ab2567a261f54a19a68b5f6a
with:
melos-version: "3.2.0"
run-bootstrap: false
- name: Create git tag based on version
run: melos version --all --yes
- name: Push tag
run: git push --tags
- name: Make the script files executable
run: chmod +x readme.sh
working-directory: ./scripts
- name: Update README.md
run: bash readme.sh
working-directory: ./scripts
- name: Create Pull Request on updated changelog and pubspec file.
uses: peter-evans/create-pull-request@76c6f5c20e2111bfee3cd30fae52a25e410f5efc
with:
token: ${{ secrets.PAT }}
title: "chore(version): bump version and update changelog"
base: master