浏览代码

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
         cd fedora/f30
 
 
         for blob in $(find . -name '*.blob'); do
         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
         done
 
 
     - name: Download artifacts
     - name: Download artifacts

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

@@ -81,7 +81,10 @@ jobs:
         cd fedora/f31
         cd fedora/f31
 
 
         for blob in $(find . -name '*.blob'); do
         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
         done
 
 
     - name: Download artifacts
     - name: Download artifacts