Skip to content

Commit

Permalink
Merge pull request #19957 from wordpress-mobile/issue/submit_gradle_d…
Browse files Browse the repository at this point in the history
…ependencies_to_gh_graph

Github Actions job for sending dependencies to GitHub Dependency Graph
  • Loading branch information
Artyom Vlasov authored Jan 16, 2024
2 parents c1558d1 + 5ec2671 commit e7c8cdd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/submit-gradle-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Submit dependencies to GitHub Dependency Graph
on:
push:
branches:
- trunk
- release/*
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- run: cp gradle.properties-example gradle.properties
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
- name: Generate the dependency graph which will be submitted post-job
run: ./gradlew dependencies

0 comments on commit e7c8cdd

Please sign in to comment.