diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 8a5579ef3..d8949b775 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -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 diff --git a/.github/workflows/pr_comment.yml b/.github/workflows/pr_comment.yml index 361089378..afbf3e838 100644 --- a/.github/workflows/pr_comment.yml +++ b/.github/workflows/pr_comment.yml @@ -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"