Skip to content

Commit f259ace

Browse files
author
lakscastro
committed
(#71) Trying to add conditional actions
1 parent a2dad3a commit f259ace

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/build-docs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build MkDocs
22
on:
33
workflow_dispatch:
4+
workflow_run:
5+
workflows: ["Publish new plugin version"]
6+
types:
7+
- completed
48
push:
59
branches:
610
- release

.github/workflows/publish.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Publish new plugin version
22
on:
3+
workflow_run:
4+
workflows: ["Perform static code analysis through Dart CLI"]
5+
types:
6+
- completed
37
workflow_dispatch:
48
push:
59
branches:
@@ -35,4 +39,4 @@ jobs:
3539
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
3640

3741
- name: Publish
38-
run: dart pub publish --force
42+
run: dart pub publish --dry-run

.github/workflows/static-analysis.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v2
20-
- uses: dart-lang/setup-dart@v1
2120
- uses: subosito/flutter-action@v2
2221
with:
2322
flutter-version: "2.10.0"
@@ -31,4 +30,4 @@ jobs:
3130
run: flutter pub get
3231

3332
- name: Run static dart analysis with fatal infos
34-
run: dart analyze --fatal-infos
33+
run: flutter analyze --fatal-infos

0 commit comments

Comments
 (0)