Files
RustPython/.github/workflows/update-libs-status.yaml
dependabot[bot] 2a0cd08c64 build(deps): bump actions/checkout from 7.0.0 to 7.0.1 (#8395)
Bumps [actions/checkout](https://github.com/actions/checkout) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-28 00:34:58 +09:00

97 lines
2.8 KiB
YAML

name: Updated libs status
on:
push:
branches:
- main
paths:
- "Lib/**"
workflow_dispatch:
permissions:
contents: read
issues: write
env:
ISSUE_ID: "6839"
jobs:
update-issue:
runs-on: ubuntu-latest
if: ${{ github.repository == 'RustPython/RustPython' }}
steps:
- name: Clone RustPython
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
path: rustpython
persist-credentials: false
sparse-checkout: |-
Lib
scripts/update_lib
.python-version
- name: Get target CPython version
id: cpython-version
run: |
version=$(cat rustpython/.python-version)
echo "version=${version}" >> "$GITHUB_OUTPUT"
- name: Clone CPython
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: python/cpython
path: cpython
ref: "v${{ steps.cpython-version.outputs.version }}"
persist-credentials: false
sparse-checkout: |
Lib
- name: Get current date
id: current_date
run: |
now=$(date -u +"%Y-%m-%d %H:%M:%S")
echo "date=$now" >> "$GITHUB_OUTPUT"
- name: Write body prefix
run: |
cat > body.txt <<EOF
<!--
THIS BODY IS AUTO-GENERATED. DO NOT EDIT MANUALLY!
-->
## Summary
Check \`scripts/update_lib\` for tools. As a note, the current latest Python version is \`${{ steps.cpython-version.outputs.version }}\`.
Previous versions' issues as reference
- 3.13: #5529
<!--
Quick guideline for Copilot:
# Clone \`github.com/python/cpython\` \`${{ steps.cpython-version.outputs.version }}\` tag under RustPython working dir with depth 1 option; never 3.14.0 or 3.14.1 or 3.14.2
# Pick a library or test to update. Probably user give one.
# Run \`python3 scripts/update_lib quick <name>\`
# A commit is automatically created. push the commit.
# Do not include keywords that automatically close an issue (e.g., Fix, Close, Resolve) next to an issue link or issue number.
-->
## Details
${{ steps.current_date.outputs.date }} (UTC)
\`\`\`shell
$ python3 scripts/update_lib todo --done
\`\`\`
EOF
- name: Run todo
run: python3 rustpython/scripts/update_lib todo --cpython cpython --lib rustpython/Lib --done >> body.txt
- name: Update GH issue
run: gh issue edit ${{ env.ISSUE_ID }} --body-file ../body.txt
env:
GH_TOKEN: ${{ github.token }}
working-directory: rustpython