Update README #516
This file contains hidden or 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: Update README | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "specs/*" | |
| - ".github/workflows/*" | |
| - "scripts/*" | |
| workflow_run: | |
| workflows: [Update spec files] | |
| types: | |
| - completed | |
| permissions: | |
| # Needs to write to this repo | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 3 | |
| ref: main | |
| - name: Set up Python | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6 | |
| with: | |
| python-version: "3.14" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install --upgrade pip | |
| pip3 install markdown | |
| - name: Update README.md file | |
| run: python3 scripts/create_readme.py | |
| - name: Commit files | |
| run: | | |
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" || true | |
| git config --local user.name "github-actions[bot]" || true | |
| git commit -a -m "Update README.md" || true | |
| - name: Push changes | |
| uses: ad-m/github-push-action@master | |
| with: | |
| github_token: ${{ secrets.KUBEARCHITECTBOT_TOKEN || secrets.GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |