Monitor source repositories #14744
This file contains 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: Monitor source repositories | |
on: | |
schedule: | |
- cron: '*/15 * * * *' | |
workflow_dispatch: | |
jobs: | |
monitor: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: check | |
run: | | |
curl --silent https://api.github.com/repos/pypa/get-pip/commits/main | jq -r '.sha' > .versions/get-pip-version.json | |
curl --silent https://api.github.com/repos/pypa/get-virtualenv/commits/main | jq -r '.sha' > .versions/get-virtualenv-version.json | |
curl --silent https://api.github.com/repos/pypa/setuptools/commits/bootstrap | jq -r '.sha' > .versions/setuptools-version.json | |
curl --silent https://api.github.com/repos/buildout/buildout/commits/bootstrap-release | jq -r '.sha' > .versions/buildout-version.json | |
- name: commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: 🤖 Automated update of source version | |
file_pattern: '.versions/*.json' | |
- name: trigger ci workflow | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
github.rest.repos.createDispatchEvent({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
event_type: 'automated-update-trigger', | |
}); |