From 9360167ccb5eb0a995d8f73bebaa9e1c6c5bb863 Mon Sep 17 00:00:00 2001 From: feederbox826 Date: Sat, 5 Oct 2024 02:14:29 -0400 Subject: [PATCH] unzip downloaded file --- ci/parser.mjs | 2 +- dockerfile/pr.Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/parser.mjs b/ci/parser.mjs index cfc7fcb..fd7eb32 100644 --- a/ci/parser.mjs +++ b/ci/parser.mjs @@ -15,7 +15,7 @@ async function downloadUrl(url) { }, responseType: 'stream' }); - await promises.writeFile(ARTIFACT_NAME, response.data); + await promises.writeFile(`${ARTIFACT_NAME}.zip`, response.data); } const ghApi = axios.create({ diff --git a/dockerfile/pr.Dockerfile b/dockerfile/pr.Dockerfile index 3dc7c2d..6079f9f 100644 --- a/dockerfile/pr.Dockerfile +++ b/dockerfile/pr.Dockerfile @@ -10,7 +10,9 @@ ARG TARGET_BRANCH \ WORKDIR /app COPY ci/parser.mjs parser.mjs RUN --mount=type=secret,id=GITHUB_TOKEN \ - npm i axios && node parser.mjs + npm i axios && node parser.mjs && \ + unzip stash-linux.zip && \ + chmod 755 stash-linux # pull in prebuilt alpine/hwaccel FROM ghcr.io/feederbox826/stash-s6:${UPSTREAM_TYPE} AS stash