Skip to content

Commit

Permalink
use git log to get timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibbelink committed Mar 24, 2024
1 parent 6929d94 commit 0459ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
- name: Save PR number and Commit hash to file
run: |
echo "${{ github.event.number }}" > pr_number
echo "$(git show -s --format=%cd --date=format:'%m/%d/%Y %H:%M' ${{ github.event.pull_request.head.sha }}) - ${{ github.event.pull_request.head.sha }}" > commit_hash_timestamp
echo "${{ github.event.pull_request.head.sha }} - $(git log -1 --format=%ci)" > commit_hash_timestamp
- name: Upload PR number artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 0459ffd

Please sign in to comment.