Skip to content

Commit

Permalink
💚 fix publish workflow (#427)
Browse files Browse the repository at this point in the history
* 💚 fix publish workflow

* 🚨 silence deprecation warning
  • Loading branch information
techouse authored May 20, 2023
1 parent ef2fbf5 commit 08781c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
- id: checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 2
- run: git checkout HEAD^
- name: Load base version
id: load_base_version
run: |
Expand Down
1 change: 1 addition & 0 deletions chopper_generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ class ChopperGenerator extends GeneratorForAnnotation<chopper.ChopperApi> {
_typeChecker(Map).isExactlyType(type) ||
_typeChecker(BuiltMap).isExactlyType(type)) return type;

// ignore: deprecated_member_use
if (generic.isDynamic) return null;

if (_typeChecker(List).isExactlyType(type) ||
Expand Down

0 comments on commit 08781c9

Please sign in to comment.