Skip to content

Commit

Permalink
add self hosted timeout minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimergp committed Oct 4, 2023
1 parent 3472ee5 commit 84cc27f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions conda_smithy/configure_feedstock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,7 @@ def _load_forge_config(forge_dir, exclusive_config_file, forge_yml=None):
"self_hosted": False,
"self_hosted_labels": [],
"self_hosted_triggers": ["push"],
"self_hosted_timeout_minutes": 360,
"cancel_in_progress": False,
# Set maximum parallel jobs
"max_parallel": None,
Expand Down
3 changes: 3 additions & 0 deletions conda_smithy/templates/github-actions.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
name: {% raw %}${{ matrix.CONFIG }}{% endraw %}
{%- if github_actions.self_hosted %}
runs-on: {% raw %}${{ matrix.labels }}{% endraw %}
{%- if github_actions.self_hosted_timeout_minutes %}
timeout-minutes: {{ github_actions.self_hosted_timeout_minutes }}
{%- endif %}
{%- else %}
runs-on: {% raw %}${{ matrix.os }}{% endraw %}-latest
{%- endif %}
Expand Down

0 comments on commit 84cc27f

Please sign in to comment.