Skip to content

Commit

Permalink
chore: only setup dart when required (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Jul 11, 2023
1 parent 030c1fd commit 7f76fd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,20 @@ runs:

# Dart deps
- name: Get Dart version
if: ${{ inputs.language == 'dart' }}
id: dart-version
shell: bash
run: |
echo "DART_VERSION=$(cat config/.dart-version)" >> $GITHUB_OUTPUT
- name: Install dart
if: ${{ inputs.language == 'dart' }}
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ steps.dart-version.outputs.DART_VERSION }}

- name: Setup dart tools
if: ${{ inputs.language == 'dart' }}
shell: bash
run: dart pub global activate melos

Expand Down

0 comments on commit 7f76fd2

Please sign in to comment.