Skip to content

Commit

Permalink
add timestamp back in
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibbelink committed Mar 24, 2024
1 parent 4bc59a3 commit 0a0eeb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,13 @@ jobs:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout cycamore
uses: actions/checkout@v4

- name: Save PR number to file
run: |
echo "${{ github.event.number }}" > pr_number
echo "${{ github.event.pull_request.head.sha }}" > commit_hash
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
2 changes: 1 addition & 1 deletion .github/workflows/pr_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Merge artifacts and get PR number
run: |
echo "### Build Status Report - $(cat commit_hash)" > artifacts_merged.md
echo "### Build Status Report - $(cat commit_hash_timestamp)" > artifacts_merged.md
cat ./*.txt >> artifacts_merged.md
echo "PR_NUMBER=$(cat pr_number)" >> "$GITHUB_ENV"
Expand Down

0 comments on commit 0a0eeb9

Please sign in to comment.