try using script for iap stub

This commit is contained in:
Vadim 2023-09-02 11:39:48 +02:00
parent f96572030d
commit deedafa236
2 changed files with 3 additions and 2 deletions

1
.github/scripts/stub_iap.sh vendored Normal file
View file

@ -0,0 +1 @@
perl -0777 -i -pe 's/( m3_lightmeter_iap:\n)( git:\n url: "https:\/\/github.com\/vodemn\/m3_lightmeter_iap"\n ref: main)/$1 path: iap/sg' pubspec.yaml

View file

@ -29,8 +29,8 @@ jobs:
- name: Override iap package with stub
if: env.STUB_IAP
run: |
echo "\ndependency_overrides:\n m3_lightmeter_iap:\n path: iap" >> pubspec.yaml
run: ./.github/scripts/stub_iap.sh
shell: bash
- uses: actions/checkout@v3
with: