Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions/publication/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ inputs:
post-merge-event:
description: Workflow event that produced the finalized release-state artifact.
required: false
default: pull_request
default: pull_request_target
attempts:
description: Maximum PublicationVerification attempts while publisher and App Store state converge.
required: false
Expand Down
11 changes: 11 additions & 0 deletions tests/Acceptance/ReleaseActionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ public function testReleaseIdentityDelegatesValidationToPhp(): void
self::assertStringNotContainsString('git ls-remote', $content);
}

public function testPublicationDefaultsToPullRequestTargetPostMergeEvent(): void
{
$action = Yaml::parseFile($this->root() . '/actions/publication/action.yml');
self::assertIsArray($action);

self::assertSame(
'pull_request_target',
$action['inputs']['post-merge-event']['default'] ?? null,
);
}

public function testPublicationDelegatesRestoreAndVerificationToPhp(): void
{
$content = $this->action('publication');
Expand Down
Loading