Skip to content

KH-520: Fix failing builds on PR from forked repositories #130

KH-520: Fix failing builds on PR from forked repositories

KH-520: Fix failing builds on PR from forked repositories #130

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate:
if: ${{ github.event_name == 'pull_request' && github.ref == 'refs/heads/main' }}
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
with:
java-version: "8"

Check failure on line 14 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 14, Col: 11): Secret NEXUS_USERNAME is required, but not provided while calling. .github/workflows/ci.yml (Line: 14, Col: 11): Secret NEXUS_PASSWORD is required, but not provided while calling.
maven-phase: "install"
validate-prod:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
with:
java-version: "8"
maven-phase: "install"
maven-args: "-P prod -DskipTests"
use-secrets: true
secrets:
NEXUS_USERNAME: ${{ secrets.MEKOM_NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.MEKOM_NEXUS_PASSWORD }}
release:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: validate
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
with:
java-version: "8"
maven-args: "-P prod -DskipTests"
secrets:
NEXUS_USERNAME: ${{ secrets.MEKOM_NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.MEKOM_NEXUS_PASSWORD }}