From 44ab7e62a51cbea3988dce126b7e0415f3a984f6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 May 2026 22:35:03 +0000 Subject: [PATCH 1/4] Add workflow_dispatch support for manual package publish Agent-Logs-Url: https://github.com/NetApp/recline/sessions/cea89f9e-4732-45b6-ac9a-7813acaa1648 Co-authored-by: RobertBlackhart <5414318+RobertBlackhart@users.noreply.github.com> --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1cea2e..64ad9e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,5 +1,7 @@ name: build -on: push +on: + push: + workflow_dispatch: jobs: build: runs-on: ubuntu-latest @@ -28,6 +30,5 @@ jobs: poetry run pytest --cov=recline --cov-report=xml tests poetry build - name: Publish Package - if: startsWith(github.event.ref, 'refs/tags') + if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'workflow_dispatch' uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0 - From ce23485ede302e4bd20bdd7cdbfe3670a361b0a5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 May 2026 22:36:00 +0000 Subject: [PATCH 2/4] Gate manual publish behind workflow_dispatch input Agent-Logs-Url: https://github.com/NetApp/recline/sessions/cea89f9e-4732-45b6-ac9a-7813acaa1648 Co-authored-by: RobertBlackhart <5414318+RobertBlackhart@users.noreply.github.com> --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 64ad9e7..716804b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,11 @@ name: build on: push: workflow_dispatch: + inputs: + publish_package: + description: "Publish package to PyPI" + required: true + default: "false" jobs: build: runs-on: ubuntu-latest @@ -30,5 +35,5 @@ jobs: poetry run pytest --cov=recline --cov-report=xml tests poetry build - name: Publish Package - if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'workflow_dispatch' + if: startsWith(github.event.ref, 'refs/tags') || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_package == 'true') uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0 From 58e899d5be9d9eb670e3affa60f7cb4aafae4575 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 May 2026 22:36:42 +0000 Subject: [PATCH 3/4] Use boolean workflow_dispatch input for manual publish Agent-Logs-Url: https://github.com/NetApp/recline/sessions/cea89f9e-4732-45b6-ac9a-7813acaa1648 Co-authored-by: RobertBlackhart <5414318+RobertBlackhart@users.noreply.github.com> --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 716804b..f2561eb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,8 +5,9 @@ on: inputs: publish_package: description: "Publish package to PyPI" + type: boolean required: true - default: "false" + default: false jobs: build: runs-on: ubuntu-latest @@ -35,5 +36,5 @@ jobs: poetry run pytest --cov=recline --cov-report=xml tests poetry build - name: Publish Package - if: startsWith(github.event.ref, 'refs/tags') || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_package == 'true') + if: startsWith(github.event.ref, 'refs/tags') || (github.event_name == 'workflow_dispatch' && inputs.publish_package) uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0 From 023fbe678575492cb442ee411f4e3816e7236fba Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 May 2026 22:37:23 +0000 Subject: [PATCH 4/4] Use event-safe publish condition for push tags and manual dispatch Agent-Logs-Url: https://github.com/NetApp/recline/sessions/cea89f9e-4732-45b6-ac9a-7813acaa1648 Co-authored-by: RobertBlackhart <5414318+RobertBlackhart@users.noreply.github.com> --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f2561eb..51cb8a8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,5 +36,5 @@ jobs: poetry run pytest --cov=recline --cov-report=xml tests poetry build - name: Publish Package - if: startsWith(github.event.ref, 'refs/tags') || (github.event_name == 'workflow_dispatch' && inputs.publish_package) + if: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || (github.event_name == 'workflow_dispatch' && inputs.publish_package) uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0