add template
This commit is contained in:
parent
61c4b90a7b
commit
4457b41915
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -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
5618
template.html
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user