mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
GHA: Fail the cleanup job if the overall workflow is cancelled or failed
This commit is contained in:
parent
f9041f281e
commit
cdbfc7e677
2 changed files with 5 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ runs:
|
|||
|
||||
input_keys = """${{ inputs.keys }}"""
|
||||
logger.debug(f'Input keys: {input_keys}')
|
||||
artifact_keys = filter(None, [x.strip() for x in input_keys.split('\n')])
|
||||
artifact_keys = list(filter(None, [x.strip() for x in input_keys.split('\n')]))
|
||||
logger.info(f'Downloading keys: {artifact_keys}')
|
||||
|
||||
api_prefix = 'actions'
|
||||
|
|
@ -35,7 +35,7 @@ runs:
|
|||
|
||||
for key in artifact_keys:
|
||||
artifact_id = [x['id'] for x in artifacts_info['artifacts'] if x['name'] == key][0]
|
||||
logger.debug(f'Artifact id: {key}: {artifact_id}')
|
||||
logger.debug(f'Artifact id for {key}: {artifact_id}')
|
||||
zip_file = f'{key}.zip'
|
||||
download_github_api_request(zip_file, f'{api_prefix}/artifacts/{artifact_id}/zip')
|
||||
logger.debug(f'Unzipping: {zip_file}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue