Skip to content

Commit 255593d

Browse files
author
Laks Castro
authored
Merge pull request #76 from lakscastro/chore/add-static-analysis-action
Fix target action branches on `static-analysis.yaml`
2 parents 727b0cb + a6ac3c2 commit 255593d

3 files changed

Lines changed: 3 additions & 15 deletions

File tree

.github/workflows/build-docs.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v2
18-
- name: Checkout to documentation branch
19-
run: |
20-
git fetch
21-
git checkout ${{ github.ref_name }}
2218

2319
- name: Deploy docs
2420
uses: mhausenblas/mkdocs-deploy-gh-pages@master

.github/workflows/publish.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
push:
99
branches:
1010
- release
11+
- master
1112

1213
jobs:
1314
publish:
@@ -17,11 +18,6 @@ jobs:
1718
- uses: actions/checkout@v2
1819
- uses: dart-lang/setup-dart@v1
1920

20-
- name: Checkout to target branch
21-
run: |
22-
git fetch
23-
git checkout ${{ github.ref_name }}
24-
2521
- name: Run static dart analysis with fatal infos
2622
run: dart analyze --fatal-infos
2723

.github/workflows/static-analysis.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
pull_request:
55
types: [opened, reopened, review_requested]
66
branches:
7-
- "release/**"
8-
- "master/**"
7+
- "release"
8+
- "master"
99
push:
1010
branches:
1111
- master
@@ -22,10 +22,6 @@ jobs:
2222
flutter-version: "2.10.0"
2323
channel: "stable"
2424
- run: flutter --version
25-
- name: Checkout to target branch
26-
run: |
27-
git fetch
28-
git checkout ${{ github.ref_name }}
2925
- name: Fetch packages
3026
run: flutter pub get
3127

0 commit comments

Comments
 (0)