event page - section separator #77
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
# This action will generate a new dependency graph for the project once a pull request is closed that targets master | |
name: Update Dependency Graph | |
on: | |
pull_request: | |
types: | |
- closed | |
branches: ["master"] | |
env: | |
NODE_VERSION: '16.14.2' | |
jobs: | |
if_merged: | |
if: github.event.pull_request.merged == true | |
name: Install packages and update dependency graph | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install | |
run: | | |
npm install | |
npm run install-graphviz-linux | |
- name: Generate | |
run: npm run depcruise | |
- name: Commit | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name Shea Dougherty-Gill | |
git commit -a -m "Dependency Graph ${{ vars.IGNORE_DEPLOY }}" | |
git push |