mirror of
https://github.com/quatalog/quatalog.git
synced 2024-11-16 03:52:55 +00:00
Add zero padding
This commit is contained in:
parent
6de711b23e
commit
cae1b09981
2
.github/workflows/transfer.yml
vendored
2
.github/workflows/transfer.yml
vendored
|
@ -14,7 +14,7 @@ jobs:
|
|||
id: matrix-params
|
||||
run: |
|
||||
NUM_PAGES="$(curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0' 'https://tes.collegesource.com/publicview/TES_publicview01.aspx?rid=f080a477-bff8-46df-a5b2-25e9affdd4ed&aid=27b576bb-cd07-4e57-84d0-37475fde70ce' | grep -e 'lblInstWithEQPaginationInfo' | grep -Poie '(?<=of )[0-9]*')"
|
||||
MATRIX_PARAMS="$(seq -s "," 1 "$NUM_PAGES")"
|
||||
MATRIX_PARAMS="$(seq -w -s "," 1 "$NUM_PAGES")"
|
||||
MATRIX_PARAMS="\"page\": $(sed -e 's/,/}, {"page": /g' <<< "$MATRIX_PARAMS")"
|
||||
echo "matrix-params={\"include\": [{"$MATRIX_PARAMS"}]}" | tee $GITHUB_OUTPUT
|
||||
outputs:
|
||||
|
|
Loading…
Reference in a new issue