Skip to content

Update FIDO MDS Snapshot #40

Update FIDO MDS Snapshot

Update FIDO MDS Snapshot #40

name: Update FIDO MDS Snapshot
on:
schedule:
- cron: '0 0 * * *' # daily at 00:00 UTC
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write # REQUIRED for git push with GITHUB_TOKEN
steps:
- name: Check out repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Refresh packaged metadata snapshot
run: python scripts/update_mds_snapshot.py
- name: Commit and push changes
if: ${{ !cancelled() }}
run: |
if git diff --quiet; then
echo "No metadata updates detected."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Update FIDO MDS snapshot"
git push