Skip to content

Commit 71896c8

Browse files
committed
feat: added use-melos support
1 parent 6259d48 commit 71896c8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

action.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ runs:
3232
run: dart pub global activate -sgit https://github.com/Droyder7/dart_diff
3333

3434
- name: Run exec command
35+
if: ${{ inputs.use-melos == 'false' }}
3536
shell: bash
3637
run: dart_diff exec -- '${{ inputs.command }}'
3738
working-directory: ${{ inputs.working-dir }}
39+
40+
- name: Run melos command
41+
if: ${{ inputs.use-melos == 'true' }}
42+
shell: bash
43+
run: melos exec -- "dart_diff exec -- '${{ inputs.command }}'"
44+
working-directory: ${{ inputs.working-dir }}

0 commit comments

Comments
 (0)