Skip to content

Commit 01e81f8

Browse files
authored
Fix bitbucket CI warning showing up on github actions, closes #136
1 parent b0ab74f commit 01e81f8

File tree

1 file changed

+2
-1
lines changed
  • mkdocs_git_revision_date_localized_plugin

1 file changed

+2
-1
lines changed

Diff for: mkdocs_git_revision_date_localized_plugin/ci.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def raise_ci_warnings(repo) -> None:
3636

3737
# Github Actions
3838
elif os.getenv("GITHUB_ACTIONS") is not None and n_commits == 1:
39+
# See also https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
3940
# Default is fetch-depth of 1 for github actions
4041
logging.warning(
4142
"""
@@ -61,7 +62,7 @@ def raise_ci_warnings(repo) -> None:
6162
)
6263

6364
# Bitbucket pipelines
64-
elif os.getenv("CI") is not None and n_commits < 50:
65+
elif os.getenv("BITBUCKET_BUILD_NUMBER") is not None and n_commits < 50:
6566
# Default is fetch-depth of 50 for bitbucket pipelines
6667
logging.warning(
6768
"""

0 commit comments

Comments
 (0)