-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.01 KB
/
Copy pathPython.yml
File metadata and controls
43 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Update Python Version
on:
schedule:
- cron: '0 9 * * 1'
workflow_dispatch:
concurrency:
group: push-to-main
cancel-in-progress: false
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.13'
- name: Run update script
run: python scripts/py_version.py
- name: Commit and push if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
if git diff --quiet README.md; then
echo "No changes detected in README.md. Exiting early."
exit 0
fi
git add README.md
git commit -m "chore: update Python version compatibility table [skip ci]"
git pull --rebase origin main
git push origin main