From cd69dd187b9bdc0c9a987e34af34694d93c8b4c4 Mon Sep 17 00:00:00 2001 From: Saurav Panda Date: Wed, 5 Nov 2025 00:50:06 -0800 Subject: [PATCH 1/2] made target text optional so we can use fallback --- .github/workflows/publish.yml | 7 ++----- workflows/workflow_use/schema/views.py | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 88d8c50..2184575 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,6 +46,8 @@ jobs: working-directory: workflows steps: - uses: actions/checkout@v4 + with: + ref: main # Always checkout main branch for releases - name: Set up Python uses: actions/setup-python@v5 with: @@ -54,8 +56,3 @@ jobs: - run: uv run ruff check --no-fix --select PLE # check only for syntax errors - run: uv build - run: uv publish --token ${{ secrets.PYPI_API_TOKEN }} - - name: Push to stable branch (if stable release) - if: startsWith(github.ref_name, 'v') && !contains(github.ref_name, 'rc') - run: | - git checkout -b stable - git push origin stable diff --git a/workflows/workflow_use/schema/views.py b/workflows/workflow_use/schema/views.py index b4f0d8c..f7a5686 100644 --- a/workflows/workflow_use/schema/views.py +++ b/workflows/workflow_use/schema/views.py @@ -43,9 +43,9 @@ class SelectorWorkflowSteps(BaseWorkflowStep): ) # PRIMARY: Text-based semantic targeting (non-brittle) - target_text: str = Field( - ..., - description='Visible or accessible text to identify the element. Use hierarchical context for disambiguation (e.g., "Submit (in Personal Information)", "Edit (item 2 of 3)").', + target_text: Optional[str] = Field( + None, + description='Visible or accessible text to identify the element. Use hierarchical context for disambiguation (e.g., "Submit (in Personal Information)", "Edit (item 2 of 3)"). If None, relies on selectorStrategies fallback.', ) # OPTIONAL: Context hints for disambiguation (stored as text, not selectors) From 7b6346f3977a0b72792f7835e5fa919d6b352fa0 Mon Sep 17 00:00:00 2001 From: Saurav Panda Date: Thu, 6 Nov 2025 16:13:22 -0800 Subject: [PATCH 2/2] updated github workflow --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2184575..554854e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -47,7 +47,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: main # Always checkout main branch for releases + ref: ${{ github.ref }} # Checkout the release tag commit - name: Set up Python uses: actions/setup-python@v5 with: