Skip to content

Commit

Permalink
ci(test): include JDK version in PR comment (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores authored Feb 15, 2024
1 parent d42a2c2 commit 78b1342
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ jobs:
const name = '${{github.workflow}}';
const url = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}';
const success = '${{ job.status }}' === 'success';
const body = `${name}: ${success ? 'All tests pass ✅' : 'At least one test failed ❌'}\n${url}`;
const javaVersion = '${{matrix.java}}';
const body = `${name}: ${success ? 'All tests pass ✅' : 'At least one test failed ❌'} (JDK${javaVersion})\n${url}`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 78b1342

Please sign in to comment.