-
-
Notifications
You must be signed in to change notification settings - Fork 55
39 lines (36 loc) · 1.13 KB
/
update.yml
File metadata and controls
39 lines (36 loc) · 1.13 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
36
37
38
39
name: Update Versions Manifest
on:
workflow_dispatch:
schedule:
# Run every day at 1:00
- cron: '0 1 * * *'
permissions: {}
jobs:
update:
name: Update Versions Manifest
runs-on: ubuntu-latest
permissions:
contents: write # for push
pull-requests: write # for PR creation
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: "3.10"
- name: Install requirements
run: pip install requests
- name: Generate Versions Manifest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python generate-versions-manifest.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0
with:
branch: update-versions-manifest
delete-branch: true
add-paths: |
versions-manifest.json
title: 'Update versions-manifest.json'
commit-message: 'Update versions-manifest.json'