Skip to content

Commit

Permalink
Disable workflow runs for all branches except on main branch on sched…
Browse files Browse the repository at this point in the history
…ule (#1104)
  • Loading branch information
kumaranvpl authored Feb 24, 2025
1 parent eb5566c commit 0f21292
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 48 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/contrib-graph-rag-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # allows manual triggering of the workflow
pull_request_target:
branches: ["main"]
paths:
- "autogen/agentchat/contrib/graph_rag/**"
- "test/agentchat/contrib/graph_rag/**"
- ".github/workflows/contrib-graph-rag-tests.yml"
- "pyproject.toml"
# pull_request_target:
# branches: ["main"]
# paths:
# - "autogen/agentchat/contrib/graph_rag/**"
# - "test/agentchat/contrib/graph_rag/**"
# - ".github/workflows/contrib-graph-rag-tests.yml"
# - "pyproject.toml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/contrib-llm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # allows manual triggering of the workflow
pull_request_target:
branches: ["main"]
paths:
- "autogen/**"
- "test/agentchat/contrib/**"
- ".github/workflows/contrib-llm-test.yml"
- "pyproject.toml"
# pull_request_target:
# branches: ["main"]
# paths:
# - "autogen/**"
# - "test/agentchat/contrib/**"
# - ".github/workflows/contrib-llm-test.yml"
# - "pyproject.toml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/contrib-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # allows manual triggering of the workflow
pull_request:
branches: ["main"]
paths:
- "autogen/**"
- "test/agentchat/contrib/**"
- "test/test_browser_utils.py"
- "test/test_retrieve_utils.py"
- ".github/workflows/contrib-test.yml"
- "pyproject.toml"
# pull_request:
# branches: ["main"]
# paths:
# - "autogen/**"
# - "test/agentchat/contrib/**"
# - "test/test_browser_utils.py"
# - "test/test_retrieve_utils.py"
# - ".github/workflows/contrib-test.yml"
# - "pyproject.toml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/core-llm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ on:
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # allows manual triggering of the workflow
pull_request_target:
branches: ["main"]
paths:
- "autogen/**"
- "test/**"
- "notebook/agentchat_auto_feedback_from_code_execution.ipynb"
- "notebook/agentchat_function_call.ipynb"
- "notebook/agentchat_groupchat_finite_state_machine.ipynb"
- ".github/workflows/core-llm-test.yml"
- "pyproject.toml"
# pull_request_target:
# branches: ["main"]
# paths:
# - "autogen/**"
# - "test/**"
# - "notebook/agentchat_auto_feedback_from_code_execution.ipynb"
# - "notebook/agentchat_function_call.ipynb"
# - "notebook/agentchat_groupchat_finite_state_machine.ipynb"
# - ".github/workflows/core-llm-test.yml"
# - "pyproject.toml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # allows manual triggering of the workflow
pull_request:
branches: ["main"]
# pull_request:
# branches: ["main"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # allows manual triggering of the workflow
pull_request_target:
branches: ["main"]
paths:
- "autogen/**"
- "test/**"
- ".github/workflows/integration-test.yml"
- "pyproject.toml"
# pull_request_target:
# branches: ["main"]
# paths:
# - "autogen/**"
# - "test/**"
# - ".github/workflows/integration-test.yml"
# - "pyproject.toml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-with-optional-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # allows manual triggering of the workflow
pull_request:
branches: ["main"]
# pull_request:
# branches: ["main"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/type-check.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Type check
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on pull request or merge
pull_request:
push:
branches:
- main
schedule:
- cron: "0 0 * * *" # daily at midnight UTC
workflow_dispatch: # allows manual triggering of the workflow
# pull_request:
# push:
# branches:
# - main

defaults:
run:
Expand Down

0 comments on commit 0f21292

Please sign in to comment.