diff --git a/.github/workflows/docs-from-code.lock.yml b/.github/workflows/docs-from-code.lock.yml index 0ed0fe948a..684fe452e0 100644 --- a/.github/workflows/docs-from-code.lock.yml +++ b/.github/workflows/docs-from-code.lock.yml @@ -51,8 +51,8 @@ jobs: activation: needs: pre_activation if: > - (needs.pre_activation.outputs.activated == 'true') && (startsWith(github.event.issue.title, '[maui-labs docs]') && - github.repository_owner == 'dotnet') + (needs.pre_activation.outputs.activated == 'true') && ((startsWith(github.event.issue.title, '[maui-labs docs]') || + github.event_name == 'workflow_dispatch') && github.repository_owner == 'dotnet') runs-on: ubuntu-slim permissions: contents: read @@ -1147,10 +1147,10 @@ jobs: await main(); pre_activation: - if: startsWith(github.event.issue.title, '[maui-labs docs]') && github.repository_owner == 'dotnet' + if: (startsWith(github.event.issue.title, '[maui-labs docs]') || github.event_name == 'workflow_dispatch') && github.repository_owner == 'dotnet' runs-on: ubuntu-slim outputs: - activated: ${{ steps.check_membership.outputs.is_team_member == 'true' }} + activated: ${{ steps.check_membership.outputs.is_team_member == 'true' || github.actor == 'MauiBot' }} matched_command: '' steps: - name: Setup Scripts