2023-08-09 22:51:23 +00:00
|
|
|
name: Create Report
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '30 * * * *'
|
2023-08-09 22:58:32 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
2023-08-09 22:51:23 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
create_report:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-08-09 23:29:42 +00:00
|
|
|
- name: Install dependencies
|
2023-08-09 22:51:23 +00:00
|
|
|
run: |
|
2023-08-17 17:11:31 +00:00
|
|
|
sudo apt-get update && sudo apt-get install -y jq python3-pip curl
|
|
|
|
pip install yq mkdocs-material
|
2023-08-09 23:29:42 +00:00
|
|
|
- name: Calculate mirror drift
|
|
|
|
run: |
|
2023-08-09 22:51:23 +00:00
|
|
|
mkdir dist
|
2023-08-17 17:11:31 +00:00
|
|
|
bash run.sh > docs/index.md
|
2023-08-09 23:29:42 +00:00
|
|
|
- name: Compile HTML file
|
|
|
|
run: |
|
2023-08-17 17:11:31 +00:00
|
|
|
mkdocs build
|
2023-08-09 22:51:23 +00:00
|
|
|
- name: Publish to Cloudflare Pages
|
|
|
|
uses: cloudflare/pages-action@v1
|
|
|
|
with:
|
|
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
|
|
accountId: b3e2c8cc31d84afe192b6a5353c2f7ef
|
|
|
|
projectName: almalinux-mirrors-report
|
2023-08-17 17:11:31 +00:00
|
|
|
directory: site
|
2023-08-09 22:51:23 +00:00
|
|
|
branch: main
|