-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.35 KB
/
monitor.yml
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
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',
});