The notify job is sometimes triggering when it should be skipped.
Also, it looks like this project requires OpenJDK 21 to build.
Change-Id: Idc0a5d6640ba0cfe9ba7c76d8f0793e361353580
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
jobs:
notify:
+ if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
# Harden the runner used by this workflow
cbom-create:
name: 'Generate PQCA CBOM'
runs-on: ubuntu-latest
+ if: always()
needs: [notify]
permissions:
contents: write
# yamllint disable-line rule:line-length
uses: lfreleng-actions/maven-build-action@main
with:
- jdk-version: '17'
+ jdk-version: '21'
distribution: 'temurin'
mvn-version: '3.8.2'
mvn-phases: 'clean package'
if-no-files-found: warn
report-status:
- if: ${{ always() }}
+ if: ${{ always() && github.event_name == 'workflow_dispatch' }}
needs: [notify, cbom-create]
runs-on: ubuntu-latest
steps: