Generate Dependency Graph #14
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: Generate Dependency Graph | |
on: | |
workflow_dispatch: | |
jobs: | |
generate-dependency-graph: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Setup Java 17 | |
# https://github.com/marketplace/actions/setup-java-jdk | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
cache: 'gradle' | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v1 | |
- name: Generate Dependency Graph | |
run: ./gradlew dependencyGraph | |
- name: Commit | |
run: | | |
git config --local user.email 'action@github.com' | |
git config --local user.name 'GitHub Action' | |
git add . | |
git commit -am 'Update dependency graph' | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref }} |