Skip to content

fix: 👷 Github actions shared #50

fix: 👷 Github actions shared

fix: 👷 Github actions shared #50

Workflow file for this run

name: Java Workflow
on:
push:
branches:
# Run on our main branch
- main
paths:
- java-demo/**
pull_request:
# Run for any pull requests
# paths:
# - java-demo/**
release:
types: [created]
jobs:
java-linting:
uses: British-Oceanographic-Data-Centre/amrit-repos/.github/workflows/component-java-lint.yml@${{ github.ref_name }}

Check failure on line 19 in .github/workflows/workflow-java.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/workflow-java.yml

Invalid workflow file

invalid value workflow reference: version cannot have whitespace: ${{ github.ref_name }}
with:
context: java-demo
java-testing:
uses: British-Oceanographic-Data-Centre/amrit-repos/.github/workflows/component-java-test.yml@${{ github.ref_name }}
with:
context: java-demo
container-image-build:
needs: [java-linting, java-testing]
uses: British-Oceanographic-Data-Centre/amrit-repos/.github/workflows/component-container-image.yml@${{ github.ref_name }}
with:
context: java-demo
image-path: ghcr.io/british-oceanographic-data-centre/amrit-repos/java/app
container-image-security:
needs: [container-image-build]
uses: British-Oceanographic-Data-Centre/amrit-repos/.github/workflows/component-container-image-security.yml@${{ github.ref_name }}
with:
context: java-demo
image-path: ghcr.io/british-oceanographic-data-centre/amrit-repos/java/app