Update Workflow for generating repo diagrams
@@ -15,6 +15,18 @@ jobs:
uses: actions/checkout@v2
ref: bot/update-diagrams
+ - name: Create Branch
+ uses: peterjgrainger/action-create-branch@b48b0ca0e307c9b56f059b70274984ffeaa90a43 # Pinned to v2.0.1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GH_PAT }}
+ with:
+ branch: 'bot/update-diagrams'
+
+ - name: Checkout code
+ uses: actions/checkout@master
+ with:
+ ref: bot/update-diagrams
+
- name: Update ASO v1 diagram
uses: githubocto/repo-visualizer@main
with:
@@ -42,11 +54,12 @@ jobs:
should_push: false
- name: Create Pull Request
- uses: peter-evans/create-pull-request@v3
+ uses: peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad # v3.10.1
with:
token: ${{ secrets.GH_PAT }}
commit-message: Update Code Structure Diagrams
branch: bot/update-diagrams
+ base: main
delete-branch: true
title: '[Automated] Update Code Structure Diagrams'
body: |
