33 lines
954 B
YAML
33 lines
954 B
YAML
name: Create Report
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '30 * * * *'
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
create_report:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update && sudo apt-get install -y jq pandoc python3-pip curl
|
|
pip install yq
|
|
- name: Calculate mirror drift
|
|
run: |
|
|
mkdir dist
|
|
bash run.sh > result.md
|
|
- name: Compile HTML file
|
|
run: |
|
|
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
|
|
uses: cloudflare/pages-action@v1
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: b3e2c8cc31d84afe192b6a5353c2f7ef
|
|
projectName: almalinux-mirrors-report
|
|
directory: dist
|
|
branch: main
|