-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (29 loc) · 1.05 KB
/
update-versions.yml
File metadata and controls
29 lines (29 loc) · 1.05 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
name: update-versions
on:
schedule:
- cron: '0 0 * * *'
jobs:
build:
if: github.repository == 'DMOJ/runtimes-python'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: '3.14'
- name: Installing dependencies
run: pip install -r requirements.txt
- name: Update python versions
run: |
sed -i '/python-version:/c\ python-version: [ '"$(python get_versions.py | tr '\n' , | sed 's/,$//;s/,/, /g')"' ]' .github/workflows/build.yml
- name: Create pull request
uses: peter-evans/create-pull-request@v8
with:
author: dmoj-build <build@dmoj.ca>
committer: dmoj-build <build@dmoj.ca>
commit-message: 'update python versions'
title: 'update python versions'
body: This PR has been auto-generated to update the python versions in `build` action.
reviewers: Xyene, quantum5, kiritofeng
branch: update-versions