Skip to content

Commit 998f626

Browse files
authored
Merge pull request #6 from PyO3/cron-update
Automate `stable_abi.txt` updates
2 parents 929e890 + 754ae50 commit 998f626

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/update.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update stable_abi.txt
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Run every week
7+
- cron: '0 0 * * 0'
8+
9+
jobs:
10+
update:
11+
name: Update stable_abi.txt
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Fetch latest stable_abi.txt
16+
run: |
17+
curl https://raw.githubusercontent.com/python/cpython/main/Misc/stable_abi.txt > Misc/stable_abi.txt
18+
- name: Create Pull Request
19+
uses: peter-evans/create-pull-request@v4
20+
with:
21+
delete-branch: true
22+
add-paths: |
23+
Misc/stable_abi.txt
24+
title: 'Update stable_abi.txt to the latest main'
25+
commit-message: 'chore: Update stable_abi.txt to the latest main'
26+
body: 'Source: https://raw.githubusercontent.com/python/cpython/main/Misc/stable_abi.txt'

0 commit comments

Comments
 (0)