diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 388516e15388..5eb896789b62 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -41,7 +41,7 @@ jobs: config_workflow: runs-on: [self-hosted, altinity-on-demand, altinity-style-checker-aarch64] needs: [] - if: ${{ github.repository == github.event.pull_request.head.repo.full_name }} + if: ${{ github.repository == github.event.pull_request.head.repo.full_name || github.event_name == 'workflow_dispatch' }} name: "Config Workflow" outputs: data: ${{ steps.run.outputs.DATA }} diff --git a/ci/workflows/pull_request.py b/ci/workflows/pull_request.py index e92e55bd9b13..165458fab0c2 100644 --- a/ci/workflows/pull_request.py +++ b/ci/workflows/pull_request.py @@ -37,7 +37,7 @@ name="PR", event=Workflow.Event.PULL_REQUEST, base_branches=[BASE_BRANCH, "releases/*", "antalya-*"], - if_condition="github.repository == github.event.pull_request.head.repo.full_name", + if_condition="github.repository == github.event.pull_request.head.repo.full_name || github.event_name == 'workflow_dispatch'", jobs=[ # JobConfigs.style_check, # NOTE (strtgbb): we don't run style check # JobConfigs.docs_job, # NOTE (strtgbb): we don't build docs