From 7643905a92f809d3f0dca7a2375f66152915b454 Mon Sep 17 00:00:00 2001 From: johnny096317 <68207841+johnny096317@users.noreply.github.com> Date: Fri, 26 Jan 2024 09:35:59 +0800 Subject: [PATCH] Update manual.yml --- .github/workflows/manual.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index b9949f4..5f25e90 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -19,11 +19,13 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Run script file run: | + set -x sourcefile='.github/source.json' array_length=$(jq '. | length' ${sourcefile}) echo ${array_length} - for ((i = 0; i < ${array_length}; i++)); do - crlfile=$(cat ${sourcefile} | jq ".[$i].url" | sed 's/"//g') + crlfile="https://moeaca.nat.gov.tw/repository/MOEACA/CRL/complete.crl" + #for ((i = 0; i < ${array_length}; i++)); do + #crlfile=$(cat ${sourcefile} | jq ".[$i].url" | sed 's/"//g') wget $crlfile -O complete.crl filename=$(cat ${sourcefile} | jq ".[$i].file" | sed 's/"//g') openssl crl -nameopt utf8 -inform DER -text -in complete.crl | grep "Serial Number" | cut -d " " -f 7 > temp @@ -34,7 +36,7 @@ jobs: printf "{\"version\":\"$version\", \"value\":[$SN]}" > temp3 cat temp3 | jq > ${filename} rm temp temp2 temp3 complete.crl - done + #done date '+%Y-%m-%d %H:%M.%S' > .github/last_executed.txt git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com"