cast to int

This commit is contained in:
2025-07-11 21:43:21 -05:00
parent cffc51f65a
commit bf12558e31
2 changed files with 10 additions and 11 deletions

View File

@@ -12,10 +12,10 @@ def main():
instance_url = os.environ['INSTANCE_URL'].rstrip('/')
repository = os.environ['REPOSITORY']
token = os.environ['TOKEN']
stale_days = os.environ.get('STALE_DAYS')
stale_tag = os.environ.get('STALE_TAG', 'stale')
exclude_tag = os.environ.get('EXCLUDE_TAG')
required_tag = os.environ.get('REQUIRED_TAG')
stale_days = int(os.environ.get('STALE_DAYS'))
stale_tag = int(os.environ.get('STALE_TAG'))
exclude_tag = int(os.environ.get('EXCLUDE_TAG'))
required_tag = int(os.environ.get('REQUIRED_TAG'))
except KeyError as e:
print(f"Error: Missing required environment variable: {e}", file=sys.stderr)
sys.exit(1)