cast to int
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user