Skip to content

Only create annotations for forked pr #235

@gilesw

Description

@gilesw

Checks can't be created on a forked repo pr but annotations can... so I was hopeful to use this action to handle that edge case. However it failed when create_check: false was set.

Run scacap/[email protected]
  with:
    report_paths: hello_world/target/surefire-reports/*.xml
    create_check: false
    fail_on_test_failures: false
    file_name_in_stack_trace: true
    skip_publishing: false
    github_token: ***
    check_name: Test Report
    fail_if_no_tests: true
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.[2](https://github.com/ORCID/orcid-hello_world_pipeline_test/actions/runs/11687962641/job/32547280116?pr=1#step:7:2)5-9/x64
    JAVA_HOME_11_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.25-9/x64
Going to parse results form hello_world/target/surefire-reports/*.xml
org.opentest4j.AssertionFailedError:1 | This is a failing test to test the pipeline. ==> expected: <true> but was: <false>
Result: 2 tests run, 0 skipped, 1 failed.
Error: Did not find any in progress 'Test Report' check for sha 82abc2859fa96fa866685[3](https://github.com/ORCID/orcid-hello_world_pipeline_test/actions/runs/11687962641/job/32547280116?pr=1#step:7:3)62ddaeabeb31b84670

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions