Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Aug 14, 2023
1 parent 7bfeb23 commit d1e4030
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/format-and-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
if: ${{ package.package != 'flutter' }}
if: ${{ matrix.package != 'flutter' }}
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected]
if: ${{ package.package == 'flutter' }}
if: ${{ matrix.package == 'flutter' }}

- run: dart pub get
if: ${{ package.package != 'flutter' }}
if: ${{ matrix.package != 'flutter' }}
- run: flutter pub get
if: ${{ package.package == 'flutter' }}
if: ${{ matrix.package == 'flutter' }}

- run: dart format .

Expand All @@ -41,5 +41,5 @@ jobs:
# actions/checkout fetches only a single commit in a detached HEAD state. Therefore
# we need to pass the current branch, otherwise we can't commit the changes.
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
- run: ../scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
# - run: ../scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
# if: env.GITHUB_HEAD_REF != null

0 comments on commit d1e4030

Please sign in to comment.