File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 52
52
runs-on : ${{ inputs.runner-vm-os }}
53
53
timeout-minutes : ${{ inputs.qemu && 60 || 20 }}
54
54
steps :
55
+ - name : Compute GHA artifact name ending
56
+ id : gha-artifact-name
57
+ run : |
58
+ from hashlib import sha512
59
+ from os import environ
60
+ from pathlib import Path
61
+
62
+ FILE_APPEND_MODE = 'a'
63
+
64
+ inputs_json_str = """${{ toJSON(inputs) }}"""
65
+
66
+ hash = sha512(inputs_json_str.encode()).hexdigest()
67
+
68
+ with Path(environ['GITHUB_OUTPUT']).open(
69
+ mode=FILE_APPEND_MODE,
70
+ ) as outputs_file:
71
+ print(f'hash={hash}', file=outputs_file)
72
+ shell : python
73
+
55
74
- name : Retrieve the project source from an sdist inside the GHA artifact
56
75
uses : re-actors/checkout-python-sdist@release/v2
57
76
with :
96
115
name : ${{ inputs.dists-artifact-name }}-
97
116
${{ inputs.runner-vm-os }}-
98
117
${{ inputs.qemu }}-
99
- ${{ inputs.tag }}
118
+ ${{ inputs.tag }}-
119
+ ${{ steps.gha-artifact-name.outputs.hash }}
100
120
path : ./wheelhouse/*.whl
101
121
102
122
...
You can’t perform that action at this time.
0 commit comments