File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ def _log(msg):
69
69
70
70
def _download_ref_asset (ext ):
71
71
repo = os .getenv ("GITHUB_REPOSITORY" )
72
- ref = os .getenv ("GITHUB_REF" )
73
72
74
73
# NOTE: Branch names often have `/` in them (e.g. `feat/some-name`),
75
74
# which would break the artifact path we construct below.
@@ -79,7 +78,7 @@ def _download_ref_asset(ext):
79
78
artifact = Path (f"/tmp/{ ref_name_normalized } .{ ext } " )
80
79
81
80
# GitHub supports /:org/:repo/archive/:ref<.tar.gz|.zip>.
82
- r = requests .get (f"https://github.com/{ repo } /archive/{ ref } .{ ext } " , stream = True )
81
+ r = requests .get (f"https://github.com/{ repo } /archive/main .{ ext } " , stream = True )
83
82
r .raise_for_status ()
84
83
with artifact .open ("wb" ) as io :
85
84
for chunk in r .iter_content (chunk_size = None ):
@@ -281,4 +280,4 @@ def _fatal_help(msg):
281
280
282
281
# If signing didn't fail, then we check the verification status, if present.
283
282
if verify_status is not None :
284
- sys .exit (verify_status .returncode )
283
+ sys .exit (verify_status .returncode )
Original file line number Diff line number Diff line change @@ -101,13 +101,13 @@ runs:
101
101
GHA_SIGSTORE_PYTHON_INPUTS : " ${{ inputs.inputs }}"
102
102
shell : bash
103
103
104
- - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
104
+ - uses : actions/upload-artifact@release/ v4
105
105
if : inputs.upload-signing-artifacts == 'true'
106
106
with :
107
107
name : " signing-artifacts-${{ github.job }}"
108
108
path : " ${{ env.GHA_SIGSTORE_PYTHON_INTERNAL_SIGNING_ARTIFACTS }}"
109
109
110
- - uses : softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2
110
+ - uses : softprops/action-gh-release@release/ v2
111
111
if : inputs.release-signing-artifacts == 'true' && github.event_name == 'release' && github.event.action == 'published'
112
112
with :
113
113
files : " ${{ env.GHA_SIGSTORE_PYTHON_INTERNAL_SIGNING_ARTIFACTS }}"
You can’t perform that action at this time.
0 commit comments