Skip to content

Commit

Permalink
auto setting
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex committed Jun 11, 2024
1 parent 141db1e commit 3e32ebc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/libs/parse/Institution.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,12 @@ def parse_ror_data(cmip_acronym,ror_data):
if os.environ['SUBMIT'] == 'none':
sys.exit(' skipping the submission.' )
elif os.environ['SUBMIT'] == 'manual':
# this does not work
inp = input('Submit to the repository? [y/n]')
if not inp.lower() != 'y':
sys.exit(' skipping the submission.' )
elif os.environ['SUBMIT'] == 'auto':
pass
else:
sys.exit(' skipping the submission.' )

Expand Down
4 changes: 2 additions & 2 deletions .github/manual/institution.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@

# Set the environment variables
env = os.environ.copy()
# none, manual, commented out
env['SUBMIT'] = 'manual'
# none, auto, manual, commented out
env['SUBMIT'] = 'auto'

env['OVERRIDE_AUTHOR'] = author
env['ISSUE']='-1'
Expand Down

0 comments on commit 3e32ebc

Please sign in to comment.