Generate stdlib lists #166
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: Generate stdlib lists | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| dry-run: | |
| description: "Don't create any PRs for this run" | |
| type: boolean | |
| default: false | |
| schedule: | |
| - cron: "0 0 * * 2" | |
| permissions: {} | |
| jobs: | |
| expand-list: | |
| strategy: | |
| matrix: | |
| python: | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| allow-prereleases: true | |
| - name: walk modules | |
| env: | |
| LISTGEN_PYTHON_VERSION: ${{ matrix.python }} | |
| run: python ./support/walk-modules.py ./stdlib_list/lists/"${LISTGEN_PYTHON_VERSION}.txt" | |
| - name: show diff | |
| if: ${{ inputs.dry-run }} | |
| run: git diff | |
| - name: create PR | |
| if: ${{ !inputs.dry-run }} | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
| with: | |
| commit-message: "[BOT] update list for ${{ matrix.python }}" | |
| branch: update-stdlib-list-${{ matrix.python }} | |
| base: main | |
| branch-suffix: timestamp | |
| title: "[BOT] update list for ${{ matrix.python }}" | |
| body: | | |
| This is an automated pull request, updating `${{ matrix.python }}.txt` after a detected change. | |
| Please review manually before merging. | |
| assignees: "woodruffw" | |
| reviewers: "woodruffw" |