action.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. name: 'Collect Test Data'
  2. description: 'Collects test data and uploads it to our internal test data collection service.'
  3. inputs:
  4. artifact_path:
  5. description: 'Path to test data output artifact to upload to our internal test data collection service'
  6. required: true
  7. gcs_bucket:
  8. description: 'The GCS bucket to upload the test data to'
  9. required: true
  10. gcp_project_id:
  11. description: 'The GCP project ID to use for uploading the test data'
  12. required: true
  13. workload_identity_provider:
  14. description: 'The workload identity provider to use for uploading the test data'
  15. required: true
  16. service_account_email:
  17. description: 'The service account email to use for uploading the test data'
  18. required: true
  19. matrix_instance_number:
  20. description: 'The instance number of the matrix job'
  21. required: false
  22. runs:
  23. using: 'composite'
  24. steps:
  25. - name: Collect test data
  26. uses: getsentry/action-collect-test-data@c0a2fd3f79d3867e2c8b486ccb1c4bf925477742 # v0.3.0
  27. with:
  28. path: ${{ inputs.artifact_path }}
  29. gcs_path: ${{ inputs.gcs_bucket }}/pytest/${{ github.repository }}/${{ github.workflow }}/${{ github.job }}${{ inputs.matrix_instance_number != '' && '/instance' || '' }}${{ inputs.matrix_instance_number != '' && inputs.matrix_instance_number || '' }}/${{ github.repository_id }}/${{ github.run_id }}/${{ github.run_attempt }}
  30. gcp_project_id: ${{ inputs.gcp_project_id }}
  31. workload_identity_provider: ${{ inputs.workload_identity_provider }}
  32. service_account_email: ${{ inputs.service_account_email }}
  33. continue-on-error: true