3838
3939jobs :
4040 prepare-code-to-analyze :
41+ name : Prepare Code to Analyze
4142 runs-on : ubuntu-latest
42- outputs :
43- analysis-name : ${{ steps.set-analysis-name.outputs.analysis-name }}
44- sources-upload-name : ${{ steps.set-sources-upload-name.outputs.sources-upload-name }}
45- artifacts-upload-name : ${{ steps.set-artifacts-upload-name.outputs.artifacts-upload-name }}
46-
4743 env :
4844 PROJECT_NAME : AxonFramework
4945 # Version variable names matches renovate.json configuration entry
5046 AXON_FRAMEWORK_VERSION : 4.10.3
5147 # Java is in this example only used to download JARs for analysis using Maven
5248 JAVA_VERSION : 21
49+ outputs :
50+ project-name : ${{ env.PROJECT_NAME }}
51+ analysis-name : ${{ steps.set-analysis-name.outputs.analysis-name }}
52+ sources-upload-name : ${{ steps.set-sources-upload-name.outputs.sources-upload-name }}
53+ artifacts-upload-name : ${{ steps.set-artifacts-upload-name.outputs.artifacts-upload-name }}
5354
5455 steps :
5556 - name : (Prepare Code to Analyze) Checkout AxonFramework repository
9899 with :
99100 name : ${{ steps.set-sources-upload-name.outputs.sources-upload-name }}
100101 path : ./source
102+ include-hidden-files : true
101103 if-no-files-found : error
102104 retention-days : 1
103105
@@ -112,57 +114,25 @@ jobs:
112114
113115
114116 analyze-code-graph :
117+ name : Analyze Code Graph
115118 needs : [prepare-code-to-analyze]
116- uses : ./ .github/workflows/analyze-code-graph.yml
119+ uses : JohT/code-graph-analysis-pipeline/ .github/workflows/public- analyze-code-graph.yml@7f43cf96d676f715cf278b020ce1dbb3338f900b # v2
117120 with :
118121 analysis-name : ${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
119122 artifacts-upload-name : ${{ needs.prepare-code-to-analyze.outputs.artifacts-upload-name }}
120123 sources-upload-name : ${{ needs.prepare-code-to-analyze.outputs.sources-upload-name }}
124+ ref : 7f43cf96d676f715cf278b020ce1dbb3338f900b
121125
122126
123- analysis-results :
127+ commit-analysis-results :
128+ name : Commit Analysis Results
124129 needs : [prepare-code-to-analyze, analyze-code-graph]
125- runs-on : ubuntu-latest
126-
127- env :
128- CI_COMMIT_MESSAGE : Automated code structure analysis analysis-results (CI)
129- CI_COMMIT_AUTHOR : ${{ github.event.repository.name }} Continuous Integration
130-
131- steps :
132- - name : Checkout GIT Repository
133- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
134- with :
135- token : ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
136-
137- - name : (Code Analysis Setup) Download source code and artifacts for analysis
138- uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
139- with :
140- name : ${{ needs.analyze-code-graph.outputs.uploaded-analysis-results }}
141- path : analysis-results/${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
142-
143- # Commit and push the native image agent analysis-results
144- - name : Display environment variable "github.event_name"
145- run : echo "github.event_name=${{ github.event_name }}"
146- - name : Display changes in the "analysis-results" directory and prepare commit
147- # Only run when a pull request gets merged or a commit is pushed to the main branch
148- # git add parameters need to match paths-ignore parameters above
149- # Git pull before add/commit/push to reduce race conditions on parallel builds
150- run : |
151- git config --global user.name '${{ env.CI_COMMIT_AUTHOR }}'
152- git config --global user.email "7671054+JohT@users.noreply.github.com"
153- git config --local http.postBuffer 524288000
154- git fetch origin
155- git status
156- git add analysis-results
157- git status
158- - name : Commit and push changes in the "analysis-results" directory
159- # Only run when a pull request gets merged or a commit is pushed to the main branch
160- # git add parameters need to match paths-ignore parameters above
161- # Git pull before add/commit/push to reduce race conditions on parallel builds
162- if : github.event_name == 'push'
163- run : |
164- git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
165- git status
166- git rebase --strategy-option=theirs origin/main --verbose
167- git status
168- git push --verbose
130+ uses : ./.github/workflows/internal-commit-results.yml
131+ with :
132+ commit-author-name : " ${{ github.event.repository.name }} Continuous Integration"
133+ commit-author-email : " 7671054+JohT@users.noreply.github.com"
134+ commit-message : " Automated code structure analysis results (CI)"
135+ commit-directory : " analysis-results/${{ needs.prepare-code-to-analyze.outputs.project-name }}/${{ needs.prepare-code-to-analyze.outputs.analysis-name }}"
136+ uploaded-artifact-name : ${{ needs.analyze-code-graph.outputs.uploaded-analysis-results }}
137+ secrets :
138+ repository-commit-token : ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
0 commit comments