action.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: post-steps
  2. description: Steps that are taken after a RocksDB job
  3. inputs:
  4. artifact-prefix:
  5. description: Prefix to append to the name of artifacts that are uploaded
  6. required: true
  7. default: "${{ github.job }}"
  8. runs:
  9. using: composite
  10. steps:
  11. - name: Upload Test Results artifact
  12. uses: actions/upload-artifact@v4.0.0
  13. with:
  14. name: "${{ inputs.artifact-prefix }}-test-results"
  15. path: "${{ runner.temp }}/test-results/**"
  16. - name: Upload DB LOG file artifact
  17. uses: actions/upload-artifact@v4.0.0
  18. with:
  19. name: "${{ inputs.artifact-prefix }}-db-log-file"
  20. path: LOG
  21. - name: Copy Test Logs (on Failure)
  22. if: ${{ failure() }}
  23. run: |
  24. mkdir -p ${{ runner.temp }}/failure-test-logs
  25. cp -r t/* ${{ runner.temp }}/failure-test-logs
  26. shell: bash
  27. - name: Upload Test Logs (on Failure) artifact
  28. uses: actions/upload-artifact@v4.0.0
  29. with:
  30. name: "${{ inputs.artifact-prefix }}-failure-test-logs"
  31. path: ${{ runner.temp }}/failure-test-logs/**
  32. if-no-files-found: ignore
  33. - name: Upload Core Dumps artifact
  34. uses: actions/upload-artifact@v4.0.0
  35. with:
  36. name: "${{ inputs.artifact-prefix }}-core-dumps"
  37. path: "core.*"
  38. if-no-files-found: ignore