Skip to content
Merged
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
10 changes: 10 additions & 0 deletions scripts/ci/pre_commit/update_installers_and_pre_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,16 @@ def replacer(match):


if __name__ == "__main__":
if not GITHUB_TOKEN:
console.print(
"[red]GITHUB_TOKEN environment variable is not set. This will lead to failures on rate limits.[/]\n"
"Please set it to a valid GitHub token with public_repo scope. You can create one by clicking "
"the URL:\n\n"
"https://github.com/settings/tokens/new?scopes=public_repo&description=airflow-update-installers-and-pre-commit\n\n"
"Once you have the token you can prepend pre-commit command with GITHUB_TOKEN='<your token>' or"
"set it in your environment with export GITHUB_TOKEN='<your token>'\n\n"
)
sys.exit(1)
changed = False
golang_version = get_latest_golang_version()
pip_version = get_latest_pypi_version("pip")
Expand Down