Skip to content

Commit 2a9a1d4

Browse files
committed
GitHub ternary operator doesn't handle the empty string
1 parent 8b64d43 commit 2a9a1d4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/export.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ jobs:
4040
conan export protobuf/all --version=6.30.1
4141
conan export snappy/all --version=1.1.10
4242
conan export soci/all --version=4.0.3
43+
- name: Upload the recipes (dry run)
44+
if: ${{ github.ref_type == 'branch' && github.ref_name != github.event.repository.default_branch }}
45+
run: |
46+
conan upload '*' --confirm --check --only-recipe --remote ${{ env.CONAN_REMOTE_NAME }} --dry-run
4347
- name: Upload the recipes
48+
if: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
4449
run: |
45-
conan upload '*' --confirm --check --only-recipe \
46-
--remote ${{ env.CONAN_REMOTE_NAME }} \
47-
${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch && '' || '--dry-run'}}
50+
conan upload '*' --confirm --check --only-recipe --remote ${{ env.CONAN_REMOTE_NAME }}

0 commit comments

Comments
 (0)