File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 44
44
git config user.name "github-actions[bot]"
45
45
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
46
46
47
+ - name : Set up Flutter
48
+ uses : subosito/flutter-action@v2
49
+ with :
50
+ channel : stable
51
+ cache : true
52
+
53
+ - name : Flutter pub get
54
+ run : flutter pub get
55
+
47
56
- name : Read current version
48
57
id : current
49
58
run : |
88
97
sed -i "s/^version: .*/version: $next/" pubspec.yaml
89
98
echo "Updated pubspec.yaml to $next"
90
99
100
+ - name : Generate OSS license file
101
+ run : |
102
+ # generate lib/generated/oss_licenses.dart (flutter_oss_licenses)
103
+ dart run flutter_oss_licenses:generate --output lib/generated/oss_licenses.dart
104
+ echo "Generated OSS licenses"
105
+
91
106
- name : Update CHANGELOG.md (prepend Unreleased section)
92
107
run : |
93
108
next='${{ steps.next.outputs.value }}'
@@ -122,7 +137,7 @@ jobs:
122
137
if : ${{ github.event.inputs.dry_run == 'false' }}
123
138
run : |
124
139
next='${{ steps.next.outputs.value }}'
125
- git add pubspec.yaml CHANGELOG.md
140
+ git add pubspec.yaml CHANGELOG.md lib/generated/oss_licenses.dart
126
141
if git diff --cached --quiet; then
127
142
echo "No changes to commit (version already set?)"
128
143
else
You can’t perform that action at this time.
0 commit comments