name: Update README repository metadata on: schedule: - cron: "17 2 * * *" workflow_dispatch: permissions: contents: write concurrency: group: update-readme-repository-metadata cancel-in-progress: false jobs: update: runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@v7 - name: Set up Python uses: actions/setup-python@v6 with: python-version: "3.12" - name: Run tests run: python -m unittest discover -s tests -v - name: Update README metadata env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: python scripts/update_readme_metadata.py - name: Commit updated metadata run: | if git diff --quiet -- README.md README_EN.md; then echo "README metadata is already current." exit 0 fi git config user.name "DiscoverBox" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add README.md README_EN.md git commit -m "docs: update repository metadata" git push