From 73d75d48073c10862ebea1422a665149932d720e Mon Sep 17 00:00:00 2001 From: Josh Crites Date: Tue, 19 Dec 2023 16:10:06 -0500 Subject: [PATCH] update --- .github/scripts/fetchRelease.js | 6 ++---- .github/workflows/update.yaml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/scripts/fetchRelease.js b/.github/scripts/fetchRelease.js index e2987d2..df744ed 100644 --- a/.github/scripts/fetchRelease.js +++ b/.github/scripts/fetchRelease.js @@ -1,7 +1,5 @@ async function main() { - console.log("Node.js version:", process.version); - const fetchOpts = { headers: {}, }; @@ -13,12 +11,12 @@ async function main() { const data = await res.json(); - console.log(data) - const filtered = data.filter( release => release.tag_name.includes('aztec-packages'), ); + console.log(filtered) + const latest = filtered.tag_name; // TODO: add the prerelease to this object! diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 854bb1b..cd1943f 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -25,4 +25,4 @@ jobs: echo "Output from Node.js script: $version_tag" - name: Check and update tutorials - run: bash ./update_tutorials.sh $version_tag + run: ls && bash ./update_tutorials.sh $version_tag