Skip to content

Different User-Agent #180

Different User-Agent

Different User-Agent #180

Workflow file for this run

name: build
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Figure out IP
run: |
curl https://ipinfo.io
- name: Try curl to get to opensource.org
run: |
curl -I https://opensource.org/ \
-v \
--http1.1 \
-H "Host: opensource.org" \
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
-H "Accept-Encoding: gzip, deflate" \
-H "Accept: */*" \
-H "Connection: keep-alive"
- name: Install Requirements
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Fetch external sources
run: |
bash .github/scripts/fetch_external_sources.sh
- name: Sphinx build
run: |
sphinx-build -M html . build
sphinx-build -b linkcheck . linkcheck
- uses: actions/upload-pages-artifact@v3
with:
path: build/html