Link external #32
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: Link external | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "15 21 * * 0" # 21.15 UTC every Sunday | |
permissions: | |
contents: write | |
jobs: | |
links: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
path: main | |
- uses: actions/checkout@v5 | |
with: | |
ref: wheelhouse | |
path: wheelhouse | |
- name: Update external links | |
run: | | |
main/tools/link_pypi wheelhouse/ | |
- name: Commit index | |
working-directory: wheelhouse | |
run: | | |
if [[ -z "$(git status --porcelain)" ]]; then | |
echo "No changes to commit" | |
exit 0 | |
fi | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
git add . | |
git commit -m "ci: Update external links" | |
git push origin HEAD:wheelhouse |