Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Run deploy GitHub workflow job on main repo only #1335

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/java-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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