Skip to content

Commit e1340e8

Browse files
committed
Fix script
1 parent 6387740 commit e1340e8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/cloudinary_dart.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Cloudinary Dart CI
33
on:
44
push:
55
branches:
6-
- master # Runs on pushes to the main branch
6+
- main
77
pull_request:
88
branches:
9-
- '**' # Runs on all pull requests
9+
- '**'
1010

1111
jobs:
1212
dart-test:
@@ -21,20 +21,24 @@ jobs:
2121
- name: Setup Dart
2222
uses: dart-lang/setup-dart@v1
2323
with:
24-
channel: stable # Use the stable Dart SDK version
24+
channel: stable
2525

2626
# Step 3: Export Cloudinary URL (Before Script)
2727
- name: Export Cloudinary URL
28-
run: export CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)
28+
run: echo "CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)" >> $GITHUB_ENV
2929

3030
# Step 4: Run Tests for url_gen
3131
- name: Run Tests for url_gen
3232
working-directory: url_gen
33+
env:
34+
CLOUDINARY_URL: ${{ env.CLOUDINARY_URL }}
3335
run: dart test
3436

3537
# Step 5: Run Tests for api
3638
- name: Run Tests for api
3739
working-directory: api
40+
env:
41+
CLOUDINARY_URL: ${{ env.CLOUDINARY_URL }}
3842
run: dart test
3943

4044
# Cache Dart Dependencies

0 commit comments

Comments
 (0)