From 211b46f6823d017e15320997335cd85bd72e98e4 Mon Sep 17 00:00:00 2001 From: Carlgo11 Date: Tue, 16 Jul 2024 20:08:39 +0200 Subject: [PATCH] Fix public action errors --- .github/workflows/publish.yml | 4 ++-- scripts/APIv3.js | 2 +- scripts/Sign.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 66763b47abf..ab9ab5a3446 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,7 +57,7 @@ jobs: passphrase: ${{ secrets.PGP_PASSWORD }} - name: Sign API files - run: bash scripts/Sign.rb + run: bash scripts/Sign.sh env: PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }} PGP_KEY_ID: ${{ steps.pgp.outputs.keyid }} @@ -67,7 +67,7 @@ jobs: rsync -av {robots.txt,api/} public/ rsync -av img/. public/icons/ - - uses: actions/upload-pages-artifact@v4 + - uses: actions/upload-pages-artifact@v3 with: path: public/ diff --git a/scripts/APIv3.js b/scripts/APIv3.js index 0b1e74cb962..05a46ade03f 100644 --- a/scripts/APIv3.js +++ b/scripts/APIv3.js @@ -31,7 +31,7 @@ Object.keys(all) entry["tfa"].forEach((method) => { if (!tfa[method]) tfa[method] = {}; - tfa[method][key] = entry; + tfa[method][entryName] = entry; }); } diff --git a/scripts/Sign.sh b/scripts/Sign.sh index 87695461565..5170febe43c 100644 --- a/scripts/Sign.sh +++ b/scripts/Sign.sh @@ -15,7 +15,7 @@ sign_and_verify() { } # Iterate API files in parallel -for f in api/v*/.json; do +for f in api/v*/*.json; do sign_and_verify "$f" & done