Skip to content

Commit 099621b

Browse files
authored
stored date and time seperately in env
1 parent 79672e3 commit 099621b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/actions.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ jobs:
4848
path: ${{ github.workspace }}/vulRep.html
4949
- name: Debug File Paths
5050
run: ls -lah ${{ github.workspace }}/
51+
- name: Current Date and Time
52+
id: date
53+
run: echo "current_date=$(date +'%Y-%m-%d %H:%M:%S %Z')" >> $GITHUB_OUTPUT
54+
5155
- name: Mail Notification
5256
uses: dawidd6/action-send-mail@v3
5357
with:
@@ -71,7 +75,7 @@ jobs:
7175
<li><strong>Workflow Run Number:</strong> <code>${{ github.run_number }}</code></li>
7276
<li><strong>Commit SHA:</strong> <code>${{ github.sha }}</code></li>
7377
<li><strong>Branch:</strong> <code>${{ github.ref_name }}</code></li>
74-
<li><strong>Generated At:</strong> <code>${{ format('{0:yyyy-MM-dd HH:mm:ss z}', github.event.repository.pushed_at) }}</code></li>
78+
<li><strong>Generated At:</strong><code>${{ steps.date.outputs.current_date }}</code></li>
7579
</ul>
7680
7781
<p>The following artifacts have been uploaded to this workflow run and can

0 commit comments

Comments
 (0)