| 1 |
name: Update auditwheel policies |
| 2 |
|
| 3 |
on: |
| 4 |
workflow_dispatch: |
| 5 |
schedule: |
| 6 |
# Run every week |
| 7 |
- cron: '0 0 * * 0' |
| 8 |
|
| 9 |
permissions: # added using https://github.com/step-security/secure-workflows |
| 10 |
contents: read |
| 11 |
|
| 12 |
jobs: |
| 13 |
update: |
| 14 |
permissions: |
| 15 |
contents: write # for peter-evans/create-pull-request to create branch |
| 16 |
pull-requests: write # for peter-evans/create-pull-request to create a PR |
| 17 |
name: Update auditwheel policies |
| 18 |
runs-on: ubuntu-latest |
| 19 |
steps: |
| 20 |
- uses: actions/checkout@v4 |
| 21 |
- name: Fetch latest policy files |
| 22 |
run: | |
| 23 |
curl https://raw.githubusercontent.com/pypa/auditwheel/main/src/auditwheel/policy/manylinux-policy.json > src/auditwheel/manylinux-policy.json |
| 24 |
curl https://raw.githubusercontent.com/pypa/auditwheel/main/src/auditwheel/policy/musllinux-policy.json > src/auditwheel/musllinux-policy.json |
| 25 |
- name: Create Pull Request |
| 26 |
uses: peter-evans/create-pull-request@v7 |
| 27 |
with: |
| 28 |
delete-branch: true |
| 29 |
add-paths: | |
| 30 |
src/auditwheel/*.json |
| 31 |
title: 'Update manylinux/musllinux policies to the latest main' |
| 32 |
commit-message: 'Update manylinux/musllinux policies to the latest main' |