Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cookiecutter/check_cookiecutter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ function stamp() {
owner="bemanproject" \
description="A Beman Library Exemplar" \
godbolt_link="https://godbolt.org/z/4qEPK87va" \
library_type="$library_type"
library_type="$library_type" \
_ci_tests_cron="30 15 * * 6" \
_pre_commit_update_cron="0 16 * * 0"
}

function check_consistency() {
Expand Down Expand Up @@ -57,7 +59,9 @@ function check_templating() {
paper="P0898R3" \
owner="bemanproject" \
description="A Beman Library RLZrmX9NfS" \
godbolt_link="https://godbolt.org/z/4qEPK87va"
godbolt_link="https://godbolt.org/z/4qEPK87va" \
_ci_tests_cron="30 15 * * 6" \
_pre_commit_update_cron="0 16 * * 0"
rm -rf "$out_dir_path/RLZrmX9NfS/infra"
local grep_path
grep_path=$(mktemp)
Expand Down
2 changes: 2 additions & 0 deletions cookiecutter/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"description": "Short project description.",
"godbolt_link": "https://www.example.com",
"library_type": ["interface", "static"],
"_ci_tests_cron": "",
"_pre_commit_update_cron": "",
"_copy_without_render": [
"infra"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
pull_request:
workflow_dispatch:
schedule:
- cron: '30 15 * * 6'
- cron: '{% if cookiecutter._ci_tests_cron %}{{ cookiecutter._ci_tests_cron }}{% else %}{{ range(0, 60) | random }} {{ range(13, 18) | random }} * * {{ range(0, 7) | random }}{% endif %}'

jobs:
beman-submodule-check:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Weekly pre-commit autoupdate
on:
workflow_dispatch:
schedule:
- cron: "0 16 * * 0"
- cron: "{% if cookiecutter._pre_commit_update_cron %}{{ cookiecutter._pre_commit_update_cron }}{% else %}{{ range(0, 60) | random }} {{ range(13, 18) | random }} * * {{ range(0, 7) | random }}{% endif %}"

{% raw -%}
jobs:
Expand Down
Loading