فهرست منبع

Fix automatic Fedora repo update

Maximilian Luz 5 سال پیش
والد
کامیت
f305468472
2فایلهای تغییر یافته به همراه8 افزوده شده و 2 حذف شده
  1. 4 1
      .github/workflows/fedora-30.yml
  2. 4 1
      .github/workflows/fedora-31.yml

+ 4 - 1
.github/workflows/fedora-30.yml

@@ -81,7 +81,10 @@ jobs:
         cd fedora/f30
 
         for blob in $(find . -name '*.blob'); do
-          wget https://github.com/linux-surface/linux-surface/releases/download/$(cat $blob)
+          blobref="$(cat $blob)"
+          repo="${blobref%%:*}"
+          vers="${blobref#*:}"
+          wget "https://github.com/linux-surface/$repo/releases/download/$vers"
         done
 
     - name: Download artifacts

+ 4 - 1
.github/workflows/fedora-31.yml

@@ -81,7 +81,10 @@ jobs:
         cd fedora/f31
 
         for blob in $(find . -name '*.blob'); do
-          wget https://github.com/linux-surface/linux-surface/releases/download/$(cat $blob)
+          blobref="$(cat $blob)"
+          repo="${blobref%%:*}"
+          vers="${blobref#*:}"
+          wget "https://github.com/linux-surface/$repo/releases/download/$vers"
         done
 
     - name: Download artifacts