浏览代码

ci: fix checksums checking

Create checksums.txt in a different directory so it doesn't affect the check.

Signed-off-by: Nick Sieger <[email protected]>
Nick Sieger 3 年之前
父节点
当前提交
c07de59a98
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      .github/workflows/ci.yml

+ 3 - 2
.github/workflows/ci.yml

@@ -199,8 +199,9 @@ jobs:
         name: Create checksums
         working-directory: ${{ env.DESTDIR }}
         run: |
-          find . -type f -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# .*/#  #' > checksums.txt
-          shasum -a 256 -U -c checksums.txt
+          find . -type f -print0 | sort -z | xargs -r0 shasum -a 256 -b | sed 's# .*/#  #' > $RUNNER_TEMP/checksums.txt
+          shasum -a 256 -U -c $RUNNER_TEMP/checksums.txt
+          mv $RUNNER_TEMP/checksums.txt .
       -
         name: License
         run: cp packaging/* ${{ env.DESTDIR }}/