Submit gradle-aware dependency information to Github #2
Workflow file for this run
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 | |
# todo: remove on PR before merging | |
on: | |
pull_request: | |
branches: [ 'main' ] | |
push: | |
branches: [ 'main' ] | |
permissions: | |
contents: write | |
jobs: | |
dependency-submission: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup JDK 11 | |
id: setup-java-11 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Set JAVA_HOME | |
run: echo "JAVA_HOME=${{ steps.setup-java-11.outputs.path }}" >> $GITHUB_ENV | |
- name: Setup gradle properties | |
run: | | |
.github/scripts/gradle-properties.sh >> gradle.properties | |
cat gradle.properties | |
- name: Generate and submit dependency graph | |
uses: gradle/actions/dependency-submission@v3 | |
- name: Upload dependency-graph-reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
path: | | |
dependency-graph-reports/** |