Skip to content

Commit 366f697

Browse files
authored
Fix CI, run CI regularly (#55)
* Adjust to new rstcheck version. * Run CI regularly. * Make sure we have latest rstcheck.
1 parent b7d8ea8 commit 366f697

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/test-action-build-html.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- .test/**
1313
- .github/workflows/test-action-build-html.yml
1414
- actions/ansible-docs-build-html/**
15+
# Run once per week (Tuesday at 04:00 UTC)
16+
schedule:
17+
- cron: '0 4 * * 2'
1518

1619
jobs:
1720
tests:

.github/workflows/test-action-build-init.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
- .test/**
1212
- .github/workflows/test-action-build-init.yml
1313
- actions/ansible-docs-build-init/**
14+
# Run once per week (Tuesday at 05:00 UTC)
15+
schedule:
16+
- cron: '0 5 * * 2'
1417

1518
jobs:
1619
tests:
@@ -116,7 +119,7 @@ jobs:
116119
${{ matrix.skip-init }} || ${{ matrix.provide-link-targets == '' }} || grep -- '^:orphan:$' rst/_targets.rst || exit 1
117120
${{ matrix.skip-init }} || ${{ matrix.provide-link-targets == '' }} || grep -- '^.. _outside_reference_1:$' rst/_targets.rst || exit 1
118121
${{ matrix.skip-init }} || ${{ matrix.provide-link-targets == '' }} || grep -- '^.. _outside_reference_2:$' rst/_targets.rst || exit 1
119-
${{ matrix.skip-init }} || ${{ matrix.provide-link-targets == '' }} || (pip install rstcheck && rstcheck --report warning rst/_targets.rst) || exit 1
122+
${{ matrix.skip-init }} || ${{ matrix.provide-link-targets == '' }} || (pip install --upgrade rstcheck && rstcheck --report-level warning rst/_targets.rst) || exit 1
120123
121124
# check if provide-link-targets was not used when being empty
122125
# short circuit if skip-init is 'true' or matrix.provide-link-targets is not empty

0 commit comments

Comments
 (0)