Skip to content

Commit

Permalink
Submit dependency graph to GitHub after publish (#3971)
Browse files Browse the repository at this point in the history
As per https://github.com/gradle/actions/blob/main/dependency-submission/README.md

Could help us both to analyze dependencies and get insight into dependents.
- openrewrite/rewrite-docs#131
  • Loading branch information
timtebeek authored Feb 5, 2024
1 parent b967406 commit afd218e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Dependency Submission

on:
workflow_run:
workflows: ["publish"]
types:
- completed

permissions:
contents: write

jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3
env:
# Exclude all dependencies that originate solely in the 'buildSrc' project
DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':buildSrc'
# Exclude dependencies that are only resolved in test classpaths
DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS: '.*[Tt]est(Compile|Runtime)Classpath'

0 comments on commit afd218e

Please sign in to comment.