actions: overwrite test results (last one wins) #8
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 Submission | |
on: | |
push: | |
branches: [ 'master' ] | |
permissions: | |
contents: write | |
env: | |
GRADLE_OPTS: "-Dorg.gradle.console=plain -Dorg.gradle.daemon=false -Dorg.gradle.stacktrace=always" | |
jobs: | |
dependency-submission: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Generate and submit dependency graph | |
id: dependency-submission | |
uses: gradle/actions/dependency-submission@v4 | |
with: | |
dependency-graph-exclude-projects: ':(testing-*)' | |
dependency-graph-exclude-configurations: '.*[Tt]est(Compile|Runtime)Classpath' | |
- name: Also upload the raw dependency graph as an artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: gradle-dependency-graph-file | |
path: ${{ steps.dependency-submission.outputs.dependency-graph-file }} | |
retention-days: 1 |