Skip to content

Commit

Permalink
More header in serie retrie query
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthio committed Dec 24, 2024
1 parent 2e94992 commit 0a051f1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ jobs:
if [ -n ${serie} ]; then
echo "SERIE=$serie" >> $GITHUB_OUTPUT
fi
- name: Display curl version
run: curl --version
- name: Retrieve Serie (Family) JSONs
id: retrieve-jsons
Expand All @@ -208,7 +205,18 @@ jobs:
for serie in ${SERIES[@]}; do
URL=https://www.st.com/bin/st/selectors/cxst/en.cxst-ps-grid.html/${serie}.json
echo "Retrieving ${URL}"
curl ${URL} --compressed -H 'User-Agent: Firefox/9000' -o .series/${serie}.json
curl ${URL} --compressed \
-H 'User-Agent: Firefox/9000' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Encoding: gzip, deflate, br, zstd' \
-H 'Connection: keep-alive' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'Sec-Fetch-Dest: document' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Sec-Fetch-Site: cross-site' \
-H 'Sec-GPC: 1' \
-H 'Priority: u=0, i' \
-o .series/${serie}.json
done
- name: Get existing devices list
Expand Down

0 comments on commit 0a051f1

Please sign in to comment.