-
Notifications
You must be signed in to change notification settings - Fork 8
32 lines (27 loc) · 1.03 KB
/
Copy pathverify-redirects.yml
File metadata and controls
32 lines (27 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Verify Redirects
on:
workflow_dispatch:
inputs:
base_url:
description: 'Base URL to test against'
required: true
default: 'https://x157.github.io'
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Create Dummy Redirect Map (Example)
# In a real scenario, this would be generated or committed to the repo
run: echo '{"/privacy.html": "/privacy"}' > redirects.json
- name: Run Verification Script
run: |
# This is just a placeholder run ensuring the script exists and runs.
# We don't have a real redirects.json populated yet in this PR.
echo "Running verification script..."
# python script/verify_redirects.py --input redirects.json --base-url ${{ inputs.base_url }}
echo "Skipping actual network calls in this workflow checking until redirects.json is populated."