Dependency Graph #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependency Graph | |
on: | |
workflow_run: | |
workflows: ["Check"] | |
branches: [main] | |
types: | |
- completed | |
concurrency: | |
# Only run once for latest commit per ref and cancel other (previous) runs. | |
group: dependency-graph-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write # this permission is needed to submit the dependency graph | |
jobs: | |
dependency-graph: | |
name: Submit dependencies to GitHub | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ inputs.ref }} | |
- uses: scalacenter/sbt-dependency-submission@v2 # for root project | |
- uses: scalacenter/sbt-dependency-submission@v2 | |
with: | |
working-directory: ./samples/compile-timeDI/ | |
- uses: scalacenter/sbt-dependency-submission@v2 | |
with: | |
working-directory: ./samples/runtimeDI/ |