Skip to content

Commit

Permalink
Fix bitbucket CI warning showing up on github actions, closes #136
Browse files Browse the repository at this point in the history
  • Loading branch information
timvink authored May 31, 2024
1 parent b0ab74f commit 01e81f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mkdocs_git_revision_date_localized_plugin/ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def raise_ci_warnings(repo) -> None:

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

# Bitbucket pipelines
elif os.getenv("CI") is not None and n_commits < 50:
elif os.getenv("BITBUCKET_BUILD_NUMBER") is not None and n_commits < 50:
# Default is fetch-depth of 50 for bitbucket pipelines
logging.warning(
"""
Expand Down

0 comments on commit 01e81f8

Please sign in to comment.