-
Notifications
You must be signed in to change notification settings - Fork 18
35 lines (35 loc) · 1.21 KB
/
dependents-report.yml
File metadata and controls
35 lines (35 loc) · 1.21 KB
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
name: Generate top dependents report
on:
schedule:
- cron: '0 14 * * 1'
workflow_dispatch:
jobs:
create-dependents-report:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up Python
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'dependents-report/requirements.txt'
- name: Fetch requirements
run: python -m pip install -r dependents-report/requirements.txt
- name: Run script
run: python dependents-report/get-dependents.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create PR
uses: peter-evans/create-pull-request@v7
with:
commit-message: Regenerate dependents report
title: Regenerate dependents report
body: This PR updates the dependents report.
base: main
branch: actions-regenerate-dependents-report
delete-branch: true
signoff: true
author: GitHub <noreply@github.com>
committer: GitHub <noreply@github.com>