Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't write test report if workflow is triggered by a fork #224

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

fujidaiti
Copy link
Owner

Related issues (optional)

None.

Description

According to dorny/test-reporter:

Workflows triggered by pull requests from forked repositories are executed with read-only token and therefore can't create check runs.

As a workaround, this PR modifies the workflow to generate a test report only when triggered by the original repository.

Summary (check all that apply)

  • Modified / added code
  • Modified / added tests
  • Modified / added examples
  • Modified / added others (pubspec.yaml, workflows, etc...)
  • Updated README
  • Contains breaking changes
    • Created / updated migration guide
  • Incremented version number
    • Updated CHANGELOG

@fujidaiti fujidaiti self-assigned this Aug 23, 2024
@fujidaiti fujidaiti enabled auto-merge (squash) August 23, 2024 17:24
@fujidaiti fujidaiti disabled auto-merge August 23, 2024 17:24
@fujidaiti fujidaiti enabled auto-merge (squash) August 23, 2024 17:24
@fujidaiti fujidaiti disabled auto-merge August 23, 2024 17:24
@fujidaiti fujidaiti enabled auto-merge (squash) August 23, 2024 17:29
@fujidaiti fujidaiti disabled auto-merge August 23, 2024 17:29
@fujidaiti fujidaiti enabled auto-merge (squash) August 23, 2024 17:30
@fujidaiti fujidaiti merged commit 10c5bd9 into main Aug 23, 2024
10 checks passed
@fujidaiti fujidaiti deleted the fix-fork-ci-error branch August 23, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant