Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fix get kernelurls (gardenlinux#2142)
Browse files Browse the repository at this point in the history
* Fix handling of non-existing file types

* Fix invocation of release_note.py script
  • Loading branch information
fwilhe authored Jun 14, 2024
1 parent 9c394d8 commit 2146280
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/get_kernelurls.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ def get_package_list(repositories, architecture):
packages = gzip.decompress(response.content).decode("UTF-8")
else:
packages = response.content.decode("UTF-8")
else:
raise(Exception(f"Failed to download package from {packages_url}"))

packages_dict.update({f'{uri}-{suite}-{component}-{arch}': packages})
packages_dict.update({f'{uri}-{suite}-{component}-{arch}': packages})

assert len(packages_dict) != 0, "Expected to find packages"
return packages_dict

def get_package_urls(package_list, package_name, resolve_depends=True):
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ case "$action" in
commit="$1"; shift
name="$1"; shift
commit_short=${commit:0:8}
body="$(.github/workflows/generate_release_note.py generate --version "$name" --commitish "$commit_short" --escaped)"
body="$(.github/workflows/release_note.py generate --version "$name" --commitish "$commit_short" --escaped)"
# If release does not exist, this get request will return a 404
release="$(get "releases/tags/$tag" | jq -r '.id' || true)"
[ ! "$release" ] || delete "releases/$release"
Expand Down

0 comments on commit 2146280

Please sign in to comment.