Create Report #14954
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Report | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
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 python3-pip | |
pip install mkdocs-material mkdocs-minify-plugin | |
- name: Calculate mirror drift | |
run: | | |
bash run.sh | |
- name: Compile HTML file | |
run: | | |
mkdocs build | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: b3e2c8cc31d84afe192b6a5353c2f7ef | |
projectName: almalinux-mirrors-report | |
directory: site | |
branch: main |