Skip to content

Commit 5aec288

Browse files
committed
Merge branch 'master' of github.com:timvink/mkdocs-git-revision-date-localized-plugin
2 parents 873a241 + bfb9773 commit 5aec288

File tree

1 file changed

+3
-3
lines changed
  • mkdocs_git_revision_date_localized_plugin

1 file changed

+3
-3
lines changed

mkdocs_git_revision_date_localized_plugin/ci.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def raise_ci_warnings(repo) -> None:
3434
)
3535

3636
# Github Actions
37-
if os.getenv("GITHUB_ACTIONS") is not None and n_commits == 1:
37+
elif os.getenv("GITHUB_ACTIONS") is not None and n_commits == 1:
3838
# Default is fetch-depth of 1 for github actions
3939
logging.warning(
4040
"""
@@ -47,7 +47,7 @@ def raise_ci_warnings(repo) -> None:
4747
)
4848

4949
# Bitbucket pipelines
50-
if os.getenv("CI") is not None and n_commits < 50:
50+
elif os.getenv("CI") is not None and n_commits < 50:
5151
# Default is fetch-depth of 50 for bitbucket pipelines
5252
logging.warning(
5353
"""
@@ -62,7 +62,7 @@ def raise_ci_warnings(repo) -> None:
6262

6363
# Azure Devops Pipeline
6464
# Does not limit fetch-depth by default
65-
if int(os.getenv("Agent.Source.Git.ShallowFetchDepth", 10e99)) < n_commits:
65+
elif int(os.getenv("Agent.Source.Git.ShallowFetchDepth", 10e99)) < n_commits:
6666
logging.warning(
6767
"""
6868
[git-revision-date-localized-plugin] Running on Azure pipelines with limited

0 commit comments

Comments
 (0)