Skip to content

Commit 177514d

Browse files
authored
Run CI on pull request and on push (#21)
1 parent cbe827c commit 177514d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/export.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Export
22

33
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/export.yml'
7+
- 'recipes/**'
48
push:
9+
branches:
10+
- main
511
paths:
612
- '.github/workflows/export.yml'
713
- 'recipes/**'
@@ -27,6 +33,7 @@ jobs:
2733
conan remote add --index 0 ${{ vars.CONAN_REMOTE_NAME }} ${{ vars.CONAN_REMOTE_URL }}
2834
echo "Added new conan remote '${{ vars.CONAN_REMOTE_NAME }}' at ${{ vars.CONAN_REMOTE_URL }}."
2935
- name: Log into Conan remote
36+
if: ${{ github.repository_owner == 'XRPLF' && github.event_name == 'push' }}
3037
run: |
3138
conan remote login ${{ vars.CONAN_REMOTE_NAME }} ${{ secrets.CONAN_REMOTE_USERNAME }} --password "${{ secrets.CONAN_REMOTE_PASSWORD }}"
3239
conan remote list-users
@@ -41,5 +48,5 @@ jobs:
4148
- name: Upload the recipes (dry run)
4249
run: conan upload '*' --confirm --check --only-recipe --remote ${{ vars.CONAN_REMOTE_NAME }} --dry-run
4350
- name: Upload the recipes
44-
if: ${{ github.ref_type == 'branch' && github.ref_name == github.event.repository.default_branch }}
51+
if: ${{ github.repository_owner == 'XRPLF' && github.event_name == 'push' }}
4552
run: conan upload '*' --confirm --check --only-recipe --remote ${{ vars.CONAN_REMOTE_NAME }}

0 commit comments

Comments
 (0)