Skip to content

Commit

Permalink
Merge pull request #1840 from epam/feat/update_quality_gate_workflow
Browse files Browse the repository at this point in the history
Improve quality gate workflow
  • Loading branch information
siarheiyelin authored Dec 11, 2023
2 parents 0714993 + 9068d98 commit 02b9fdf
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/qualityGateCommentPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,23 @@ jobs:
with:
script: |
return Number(require('fs').readFileSync('./${{ env.PR_NUM_ARTIFACT }}').toString());
#
#
#
- name: Concatenate reports
run: |
cat ./${{ env.REPORT_1_ARTIFACT }} >> ./${{ env.REPORT_CONCATENATED }}
echo -e "\n\n---" >> ./${{ env.REPORT_CONCATENATED }}
cat ./${{ env.REPORT_2_ARTIFACT }} >> ./${{ env.REPORT_CONCATENATED }}
echo -e "\n${{ env.COMMENT_TAG }}" >> ./${{ env.REPORT_CONCATENATED }}
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const SEPARATOR = "\n\n---";
const contentArr = [
fs.readFileSync('./${{ env.REPORT_1_ARTIFACT }}'),
fs.readFileSync('./${{ env.REPORT_2_ARTIFACT }}'),
];
const concatenated = contentArr.join(SEPARATOR);
const commentContent = concatenated + '\n' + '${{ env.COMMENT_TAG }}';
fs.writeFileSync('./${{ env.REPORT_CONCATENATED }}', commentContent);
#
# Update comment: track-bundle-size
#
Expand Down

0 comments on commit 02b9fdf

Please sign in to comment.