This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 8cd0015  Launch build on Pull request #132 (#320)
8cd0015 is described below

commit 8cd0015a39c581d5a9a5b1a00a5edb1321e2c79b
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Tue Apr 19 03:30:24 2022 +0200

    Launch build on Pull request #132 (#320)
    
    - not doing it in native workflow as it is pushing images so will
    require
    more change.
    - not building standalone as it is using the same command to build and
    deploy. Will need to be separated or be able to pass parameters
    
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .github/workflows/main.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 16ba677..b3ba5f2 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -4,6 +4,8 @@ on:
   push:
     branches: [ main ]
   workflow_dispatch:
+  pull_request:
+    branches: [ main ]
 
 jobs:
   build:
@@ -66,6 +68,7 @@ jobs:
         with:
           name: camel-karavan-vscode.vsix
           path: ./karavan-vscode/*.vsix
+        if: ${{ github.ref == 'refs/heads/main' }}
 
       #  Build Karavan standalone
       - name: Build Karavan standalone
@@ -76,3 +79,4 @@ jobs:
           -Dquarkus.container-image.image=ghcr.io/${GITHUB_REPOSITORY}:latest \
           -Dquarkus.container-image.username=${{ github.actor }} \
           -Dquarkus.container-image.password=${{ secrets.GITHUB_TOKEN }}
+        if: ${{ github.ref == 'refs/heads/main' }}

Reply via email to