Skip to content

Commit 226a82f

Browse files
committed
Fix 'on: push' branch and only log into Conan remote when pushing
1 parent 177514d commit 226a82f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/export.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'recipes/**'
88
push:
99
branches:
10-
- main
10+
- master
1111
paths:
1212
- '.github/workflows/export.yml'
1313
- 'recipes/**'
@@ -29,6 +29,7 @@ jobs:
2929
- name: Install Conan
3030
uses: conan-io/setup-conan@v1
3131
- name: Add Conan remote
32+
if: ${{ github.repository_owner == 'XRPLF' && github.event_name == 'push' }}
3233
run: |
3334
conan remote add --index 0 ${{ vars.CONAN_REMOTE_NAME }} ${{ vars.CONAN_REMOTE_URL }}
3435
echo "Added new conan remote '${{ vars.CONAN_REMOTE_NAME }}' at ${{ vars.CONAN_REMOTE_URL }}."

0 commit comments

Comments
 (0)