Skip to content

Commit 44918e7

Browse files
committed
Omit committing analysis results
1 parent 9e6f642 commit 44918e7

File tree

2 files changed

+2
-84
lines changed

2 files changed

+2
-84
lines changed

.github/workflows/internal-java-code-analysis.yml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -117,45 +117,4 @@ jobs:
117117
with:
118118
analysis-name: ${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
119119
artifacts-upload-name: ${{ needs.prepare-code-to-analyze.outputs.artifacts-upload-name }}
120-
sources-upload-name: ${{ needs.prepare-code-to-analyze.outputs.sources-upload-name }}
121-
122-
123-
124-
commit-analysis-results:
125-
if: github.event_name == 'push'
126-
needs: [prepare-code-to-analyze, analyze-code-graph]
127-
runs-on: ubuntu-latest
128-
129-
env:
130-
CI_COMMIT_MESSAGE: Automated code structure analysis analysis-results (CI)
131-
CI_COMMIT_AUTHOR: ${{ github.event.repository.name }} Continuous Integration
132-
133-
steps:
134-
- name: Checkout GIT Repository
135-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
136-
with:
137-
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
138-
139-
- name: (Code Analysis Setup) Download source code and artifacts for analysis
140-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
141-
with:
142-
name: ${{ needs.analyze-code-graph.outputs.uploaded-analysis-results }}
143-
path: ./results/${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
144-
145-
- name: Commit "results" directory containing the reports
146-
# Only run when a pull request gets merged or a commit is pushed to the main branch
147-
# git add parameters need to match paths-ignore parameters above
148-
# Git pull before add/commit/push to reduce race conditions on parallel builds
149-
run: |
150-
git config --global user.name '${{ env.CI_COMMIT_AUTHOR }}'
151-
git config --global user.email "[email protected]"
152-
git config --local http.postBuffer 524288000
153-
git fetch origin
154-
git status
155-
git add results
156-
git status
157-
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
158-
git status
159-
git rebase --strategy-option=theirs origin/main --verbose
160-
git status
161-
git push --verbose
120+
sources-upload-name: ${{ needs.prepare-code-to-analyze.outputs.sources-upload-name }}

.github/workflows/internal-typescript-code-analysis.yml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -119,45 +119,4 @@ jobs:
119119
uses: ./.github/workflows/public-analyze-code-graph.yml
120120
with:
121121
analysis-name: ${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
122-
sources-upload-name: ${{ needs.prepare-code-to-analyze.outputs.sources-upload-name }}
123-
124-
125-
126-
commit-analysis-results:
127-
if: github.event_name == 'push'
128-
needs: [prepare-code-to-analyze, analyze-code-graph]
129-
runs-on: ubuntu-latest
130-
131-
env:
132-
CI_COMMIT_MESSAGE: Automated code structure analysis analysis-results (CI)
133-
CI_COMMIT_AUTHOR: ${{ github.event.repository.name }} Continuous Integration
134-
135-
steps:
136-
- name: Checkout GIT Repository
137-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
138-
with:
139-
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
140-
141-
- name: (Code Analysis Setup) Download source code and artifacts for analysis
142-
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
143-
with:
144-
name: ${{ needs.analyze-code-graph.outputs.uploaded-analysis-results }}
145-
path: results/${{ needs.prepare-code-to-analyze.outputs.analysis-name }}
146-
147-
- name: Commit "results" directory containing the reports
148-
# Only run when a pull request gets merged or a commit is pushed to the main branch
149-
# git add parameters need to match paths-ignore parameters above
150-
# Git pull before add/commit/push to reduce race conditions on parallel builds
151-
run: |
152-
git config --global user.name '${{ env.CI_COMMIT_AUTHOR }}'
153-
git config --global user.email "[email protected]"
154-
git config --local http.postBuffer 524288000
155-
git fetch origin
156-
git status
157-
git add results
158-
git status
159-
git commit -m "${{ env.CI_COMMIT_MESSAGE }}"
160-
git status
161-
git rebase --strategy-option=theirs origin/main --verbose
162-
git status
163-
git push --verbose
122+
sources-upload-name: ${{ needs.prepare-code-to-analyze.outputs.sources-upload-name }}

0 commit comments

Comments
 (0)