Skip to content

Commit b97e308

Browse files
committed
Fix upstream downloading for prerelease
1 parent b3c8f7c commit b97e308

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
path: "ruby"
1414
- run: |
1515
major_version=$(head -n1 ruby/debian/changelog | egrep -o "ruby[0-9.]+" | sed "s/ruby//")
16-
minor_version=$(head -n1 ruby/debian/changelog | egrep -o "\([0-9.]+" | sed "s/(//")
17-
curl https://cache.ruby-lang.org/pub/ruby/${major_version}/ruby-${minor_version}.tar.gz > ruby${major_version}_${minor_version}.orig.tar.gz
16+
minor_version=$(head -n1 ruby/debian/changelog | egrep -o "\([0-9.]+(~[a-z0-9]+)?" | sed "s/(//")
17+
upstream_minor_version=$(echo $minor_version | sed "s/~/-/")
18+
curl https://cache.ruby-lang.org/pub/ruby/${major_version}/ruby-${upstream_minor_version}.tar.gz > ruby${major_version}_${minor_version}.orig.tar.gz
1819
# Remove this file itself to avoid generating a debian-changes file
1920
rm -rf ruby/.github
2021
- name: Publish PPA

debian/changelog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ruby3.3 (3.3.0~preview1-1ppa1) bionic; urgency=medium
77
* New upstream version 3.3.0~preview1
88
* Restore auto-upload
99

10-
-- Ubuntu <ubuntu@focal> Fri, 19 May 2023 08:20:45 -0500
10+
-- Ubuntu <ubuntu@focal> Fri, 19 May 2023 08:20:46 -0500
1111

1212
ruby3.2 (3.2.2-1ppa1) bionic; urgency=medium
1313

0 commit comments

Comments
 (0)