Skip to content

Commit

Permalink
Test gh_release
Browse files Browse the repository at this point in the history
  • Loading branch information
nanory committed Nov 24, 2023
1 parent 49de49b commit 93f9070
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- uses: actions/checkout@v4
with:
repository: gardenlinux/package-build
ref: feature/5-remove-pkg-yml
- run: mkdir input output
- uses: actions/checkout@v4
with:
Expand Down
7 changes: 6 additions & 1 deletion scripts/gh_release
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ case "$action" in
release="$1"; shift
name="$1"; shift

asset_id="$(get "releases/$release/assets" | jq -r '.[] | select(.name == "'"$name"'") | .id')"
normalized_name=${name/\~/\.}

echo $normalized_name
get "releases/$release/assets"

asset_id="$(get "releases/$release/assets" | jq -r '.[] | select(.name == "'"$normalized_name"'") | .id')"
get_binary "releases/assets/$asset_id" > "$name"

;;
Expand Down

0 comments on commit 93f9070

Please sign in to comment.