Skip to content

Commit

Permalink
test to override path
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Jun 4, 2024
1 parent 05c6adf commit 471b1cb
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/flutter_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,13 @@ jobs:
with:
ssh-private-key: ${{secrets.ssh_key}}

- name: Conditionally Override didkit dependency
run: |
if grep -q 'path: ../../../didkit/lib/flutter' packages/did_kit/pubspec.yaml; then
echo "Path found, modifying pubspec.yaml"
sed -i 's|path: ../../../didkit/lib/flutter|git:\n url: https://github.com/spruceid/didkit.git\n path: lib/flutter|' packages/did_kit/pubspec.yaml
else
echo "Path not found, no changes made"
fi
- name: 📦 Install Dependencies
run: |
if grep -q 'path: ../../../didkit/lib/flutter' packages/did_kit/pubspec.yaml; then
echo "Path found, modifying pubspec.yaml"
sed -i 's|path: ../../../didkit/lib/flutter|git:\n url: https://github.com/spruceid/didkit.git\n path: lib/flutter|' packages/did_kit/pubspec.yaml
else
echo "Path not found, no changes made"
flutter pub global activate very_good_cli
very_good packages get --recursive --ignore=${{inputs.package_get_excludes}}
Expand Down

0 comments on commit 471b1cb

Please sign in to comment.