Skip to content

Commit

Permalink
Add initiate stage
Browse files Browse the repository at this point in the history
Extract tag or branch name
  • Loading branch information
davidsloan committed Apr 4, 2024
1 parent bce4a33 commit 05c6aff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ on:
modules:
description: "Stream reactor collection of modules"
value: ${{ jobs.initiate.outputs.matrix }}

dep_check_modules:
description: "Modules for dependency checking"
value: ${{ jobs.initiate.outputs.dep_check_matrix }}
jobs:
initiate:
timeout-minutes: 5
Expand Down Expand Up @@ -218,10 +220,9 @@ jobs:
path: ~/**/target/libs/*.jar
key: assembly-${{ matrix.module }}-${{ github.run_id }}
fail-on-cache-miss: true
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Get branch names.
id: branch_name
uses: tj-actions/branch-names@v8
- name: Dependency Check
uses: dependency-check/Dependency-Check_Action@main
with:
Expand All @@ -230,7 +231,7 @@ jobs:
format: 'HTML'
args: >-
--failOnCVSS 5
--suppression https://raw.githubusercontent.com/lensesio/stream-reactor/${{ steps.extract_branch.outputs.branch }}/suppression.xml
--suppression https://raw.githubusercontent.com/${{ github.repository }}/${{ steps.branch_name.outputs.tag }}${{ steps.branch_name.outputs.current_branch }}/suppression.xml
- name: Upload Test results
uses: actions/upload-artifact@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
module: ${{fromJSON(needs.initiate.outputs.dep_check_matrix)}}
module: ${{fromJSON(needs.build.outputs.dep_check_modules)}}
steps:
- uses: actions/checkout@v4
- name: Restore assembly
Expand Down

0 comments on commit 05c6aff

Please sign in to comment.