From a8c6b6a915d95f5e8da7d06eb2a70f47d084a3ce Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Tue, 11 Jul 2023 15:46:33 +0200 Subject: [PATCH] Add workflow to submit dependency graph --- .../submit-github-dependency-graph.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/submit-github-dependency-graph.yml diff --git a/.github/workflows/submit-github-dependency-graph.yml b/.github/workflows/submit-github-dependency-graph.yml new file mode 100644 index 0000000..5ad3106 --- /dev/null +++ b/.github/workflows/submit-github-dependency-graph.yml @@ -0,0 +1,27 @@ +name: Submit GitHub Dependency Graph +on: + workflow_dispatch: + push: + branches: + - main + +permissions: + contents: write + +jobs: + generate-and-submit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: temurin + java-version: 8 + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + with: + dependency-graph: generate-and-submit + - name: Run gradle to resolve dependencies + run: ./gradlew :GitHubDependencyGraphPlugin_generateDependencyGraph + env: + GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_SOLUTIONS_ACCESS_TOKEN }}