Skip to content

Commit 6d38ff4

Browse files
committed
pass staging repo to eessitarball
1 parent c0c88f1 commit 6d38ff4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/automated_ingestion/automated_ingestion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def main():
9292
logging.basicConfig(filename=log_file, format=log_format, level=log_level)
9393
# TODO: check configuration: secrets, paths, permissions on dirs, etc
9494
gh_pat = config['secrets']['github_pat']
95-
gh = github.Github(gh_pat)
95+
gh_staging_repo = github.Github(gh_pat).get_repo(config['github']['staging_repo'])
9696
s3 = boto3.client(
9797
's3',
9898
aws_access_key_id=config['secrets']['aws_access_key_id'],
@@ -107,7 +107,7 @@ def main():
107107
print(f'[{bucket}] {num}: {tarball}')
108108
else:
109109
for tarball in tarballs:
110-
tar = EessiTarball(tarball, config, gh, s3, bucket)
110+
tar = EessiTarball(tarball, config, gh_staging_repo, s3, bucket)
111111
tar.run_handler()
112112

113113

0 commit comments

Comments
 (0)