Skip to content

Commit 5bdeb2c

Browse files
committed
Make hash compute sparse @ reusable-cibuildwheel
1 parent 97e715d commit 5bdeb2c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/reusable-cibuildwheel.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,19 @@ jobs:
5858
from hashlib import sha512
5959
from os import environ
6060
from pathlib import Path
61+
6162
FILE_APPEND_MODE = 'a'
63+
6264
inputs_json_str = """${{ toJSON(inputs) }}"""
65+
6366
hash = sha512(inputs_json_str.encode()).hexdigest()
67+
6468
with Path(environ['GITHUB_OUTPUT']).open(
6569
mode=FILE_APPEND_MODE,
6670
) as outputs_file:
6771
print(f'hash={hash}', file=outputs_file)
6872
shell: python
73+
6974
- name: Retrieve the project source from an sdist inside the GHA artifact
7075
uses: re-actors/checkout-python-sdist@release/v2
7176
with:

0 commit comments

Comments
 (0)