Skip to content

Commit 0605eef

Browse files
authored
Release 3.2.2 (#19)
Project Root: * Update action.py * Update action.yml --------- Signed-off-by: DK96-OS <69859316+DK96-OS@users.noreply.github.com>
1 parent 802496f commit 0605eef

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

action.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def _log(msg):
6969

7070
def _download_ref_asset(ext):
7171
repo = os.getenv("GITHUB_REPOSITORY")
72-
ref = os.getenv("GITHUB_REF")
7372

7473
# NOTE: Branch names often have `/` in them (e.g. `feat/some-name`),
7574
# which would break the artifact path we construct below.
@@ -79,7 +78,7 @@ def _download_ref_asset(ext):
7978
artifact = Path(f"/tmp/{ref_name_normalized}.{ext}")
8079

8180
# 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)
8382
r.raise_for_status()
8483
with artifact.open("wb") as io:
8584
for chunk in r.iter_content(chunk_size=None):
@@ -281,4 +280,4 @@ def _fatal_help(msg):
281280

282281
# If signing didn't fail, then we check the verification status, if present.
283282
if verify_status is not None:
284-
sys.exit(verify_status.returncode)
283+
sys.exit(verify_status.returncode)

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ runs:
101101
GHA_SIGSTORE_PYTHON_INPUTS: "${{ inputs.inputs }}"
102102
shell: bash
103103

104-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
104+
- uses: actions/upload-artifact@release/v4
105105
if: inputs.upload-signing-artifacts == 'true'
106106
with:
107107
name: "signing-artifacts-${{ github.job }}"
108108
path: "${{ env.GHA_SIGSTORE_PYTHON_INTERNAL_SIGNING_ARTIFACTS }}"
109109

110-
- uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2
110+
- uses: softprops/action-gh-release@release/v2
111111
if: inputs.release-signing-artifacts == 'true' && github.event_name == 'release' && github.event.action == 'published'
112112
with:
113113
files: "${{ env.GHA_SIGSTORE_PYTHON_INTERNAL_SIGNING_ARTIFACTS }}"

0 commit comments

Comments
 (0)