From 3a916236005bba6ad205713fde2e1414ec019402 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 22 Sep 2026 14:56:30 -0300 Subject: [PATCH 1/3] fix: allow publication state event override --- actions/release-publication/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/actions/release-publication/action.yml b/actions/release-publication/action.yml index c76028a..18a0ac3 100644 --- a/actions/release-publication/action.yml +++ b/actions/release-publication/action.yml @@ -16,6 +16,10 @@ inputs: description: Consumer workflow path that produced the finalized release-state artifact. required: false default: .github/workflows/prepare-release.yml + post-merge-event: + description: Workflow event that produced the finalized release-state artifact. + required: false + default: pull_request attempts: description: Maximum PublicationVerification attempts while publisher/App Store state converges. required: false @@ -46,7 +50,7 @@ runs: artifact-name: release-state-${{ inputs.github-release-id }} destination: ${{ runner.temp }}/release-publication-state github-token: ${{ inputs.github-token }} - expected-event: pull_request + expected-event: ${{ inputs.post-merge-event }} expected-workflow-path: ${{ inputs.post-merge-workflow-path }} - id: setup From 96ecbaf340f368d25aa5e7b38e4662335ffa857b Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 22 Sep 2026 14:56:33 -0300 Subject: [PATCH 2/3] chore: bump version to 0.6.14 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index e196726..fcbaa84 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.13 +0.6.14 From 0da1f513614cf88e22704d52b56552abd0805e0a Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 22 Sep 2026 14:57:08 -0300 Subject: [PATCH 3/3] test: cover publication state event override --- tests/test_release_publication_action.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_release_publication_action.py b/tests/test_release_publication_action.py index bc64321..63dbaa5 100644 --- a/tests/test_release_publication_action.py +++ b/tests/test_release_publication_action.py @@ -12,7 +12,9 @@ class ReleasePublicationActionTest(unittest.TestCase): def test_restores_state_from_post_merge_run(self) -> None: content = ACTION.read_text(encoding="utf-8") self.assertIn("release-state-${{ inputs.github-release-id }}", content) - self.assertIn("expected-event: pull_request", content) + self.assertIn("post-merge-event:", content) + self.assertIn("default: pull_request", content) + self.assertIn("expected-event: ${{ inputs.post-merge-event }}", content) self.assertIn("expected-workflow-path:", content) def test_retry_loop_reuses_publication_verify_contract(self) -> None: