Skip to content

Commit

Permalink
better PR comment message
Browse files Browse the repository at this point in the history
  • Loading branch information
eruizalo committed Sep 26, 2022
1 parent a249303 commit 1db96ae
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/pr_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Get current date
id: getDate
run: echo "::set-output name=current_date::$(date +'%Y-%m-%d %H:%M:%S')"
run: echo "::set-output name=current_date::$(date +'%Y-%m-%d %H:%M:%S %z (%Z)')"

- name: Create summary comment
uses: peter-evans/create-or-update-comment@v2
Expand All @@ -58,10 +58,11 @@ jobs:
body: |
:octocat: This is an auto-generated comment created by:
- date: ${{ steps.getDate.outputs.current_date }}
- workflow: ${{ github.workflow }}
- job name: ${{ github.job }}
- run: [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
- Date : ${{ steps.getDate.outputs.current_date }}
- Workflow : ${{ github.workflow }}
- Job name : ${{ github.job }}
- Run : [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
- Commit : ${{ github.event.workflow_run.head_commit.id }} <!-- ${{ github.event.workflow_run.head_sha }} --> ${{ github.event.workflow_run.head_commit.message }}
<table>
<tr>
Expand Down Expand Up @@ -97,11 +98,6 @@ jobs:
- URL: [${{ github.event.workflow_run.html_url }}](${{ github.event.workflow_run.html_url }})
- on ${{ github.event_name }}:${{ github.event.action }} <!-- ${{ github.event.workflow_run.status }} -->
</td></tr>
<tr><td colspan="3">
Commit:
- ${{ github.event.workflow_run.head_commit.id }} <!-- ${{ github.event.workflow_run.head_sha }} --> ${{ github.event.workflow_run.head_commit.message }}
</td></tr>
</table>
Test summary report 📊
Expand Down

0 comments on commit 1db96ae

Please sign in to comment.