add template

This commit is contained in:
Rodrigo de Avila 2023-08-09 20:29:42 -03:00 committed by GitHub
parent 61c4b90a7b
commit 4457b41915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5625 additions and 5 deletions

View File

@ -11,15 +11,17 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Calculate mirror drift - name: Install dependencies
run: | run: |
sudo apt-get update && sudo apt-get install -y jq pandoc python3-pip curl sudo apt-get update && sudo apt-get install -y jq pandoc python3-pip curl
pip install yq pip install yq
- name: Calculate mirror drift
run: |
mkdir dist mkdir dist
bash run.sh > dist/result.md bash run.sh > result.md
cd dist - name: Compile HTML file
pandoc -f markdown -t html result.md > index.html run: |
rm result.md pandoc --metadata title="AlmaLinux Mirror Propagation Report" --to=html5 -s -f markdown+smart --template=template.html result.md -o dist/index.html
- name: Publish to Cloudflare Pages - name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1 uses: cloudflare/pages-action@v1
with: with:

5618
template.html Normal file

File diff suppressed because it is too large Load Diff