You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/03/03 13:36:39 UTC
[camel-kamelets] branch main updated: chore: Run deploy GitHub workflow job on main repo only
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
The following commit(s) were added to refs/heads/main by this push:
new a109bb7c chore: Run deploy GitHub workflow job on main repo only
a109bb7c is described below
commit a109bb7cd82c79c44483fdb926de7f420fda5408
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Fri Mar 3 09:56:12 2023 +0100
chore: Run deploy GitHub workflow job on main repo only
Prevents deploy build job to fail on forked repositories
---
.github/workflows/ci-build.yml | 4 ++--
.github/workflows/java-tests.yaml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 5a650f64..f35408c7 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -69,8 +69,8 @@ jobs:
path: maven-repo-${{ github.run_id }}-${{ github.run_number }}.tgz
deploy:
runs-on: ubuntu-latest
- # Run only when pushing to the branches (either main or release), never on merge requests
- if: ${{ github.event_name == 'push' }}
+ # Run only when pushing to the branches (either main or release), never on merge requests and forks
+ if: ${{ github.repository == 'apache/camel-kamelets' && github.event_name == 'push' }}
env:
NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_USER }}
NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PW }}
diff --git a/.github/workflows/java-tests.yaml b/.github/workflows/java-tests.yaml
index 13c9597d..ca6717f4 100644
--- a/.github/workflows/java-tests.yaml
+++ b/.github/workflows/java-tests.yaml
@@ -45,6 +45,6 @@ jobs:
java-version: 17
cache: 'maven'
- name: Build catalog 1st Run
- run: ./mvnw clean install -DskipTests
+ run: ./mvnw clean install -DskipTests -DskipITs
- name: Build catalog 2nd Run
run: ./mvnw clean install