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 eafe161 commit 05c6adf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/flutter_package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,15 @@ jobs:
with:
ssh-private-key: ${{secrets.ssh_key}}

- name: 📦 Override didkit dependency
run: |
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
- 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: |
flutter pub global activate very_good_cli
Expand Down

0 comments on commit 05c6adf

Please sign in to comment.