Skip to content

Commit

Permalink
Fix curl error 92 on maintenance workflow (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthio authored Dec 24, 2024
1 parent 08ba752 commit e97ae31
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ jobs:
if [ -n ${serie} ]; then
echo "SERIE=$serie" >> $GITHUB_OUTPUT
fi
- name: Retrieve Serie (Family) JSONs
id: retrieve-jsons
continue-on-error: true
Expand All @@ -205,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 e97ae31

Please sign in to comment.