Skip to content

Commit

Permalink
Cleanup Mutalk CI
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep authored Jul 1, 2024
1 parent 82aace5 commit b72cb35
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/mutalkCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,34 +32,12 @@ jobs:
- run: ${{env.SMALLTALK_CI_VM}} ${{env.SMALLTALK_CI_IMAGE}} mutalk --project=${{github.event.repository.name}}
shell: bash

- name: Create report
id: mutation_report
shell: bash
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
{
echo "MUTATION_REPORT<<$EOF"
sed -e '$a\' "${{env.SMALLTALK_CI_BUILD_BASE}}/__mutalk_summary.md"
echo "$EOF"
} >> $GITHUB_OUTPUT
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
comment_tag: mut_report
filePath: "${{env.SMALLTALK_CI_BUILD_BASE}}/__mutalk_summary.md"

- uses: actions/github-script@v6
env:
MUTATION_REPORT: steps.mutation_report.outputs.MUTATION_REPORT
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: process.env.MUTATION_REPORT
})
- run: cp ${{env.SMALLTALK_CI_BUILD_BASE}}/__mutalk_summary.md $GITHUB_STEP_SUMMARY

- uses: actions/upload-artifact@v4
Expand Down

0 comments on commit b72cb35

Please sign in to comment.