Skip to content

Update Python versions #13582

Update Python versions

Update Python versions #13582

Workflow file for this run

name: Update Python versions
on:
schedule:
- cron: "5 * * * *"
permissions:
pull-requests: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Install Nix
uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- name: Install Cachix
uses: cachix/cachix-action@v15
with:
name: nixpkgs-python
extraPullNames: devenv
- name: Install devenv.sh
run: nix profile install github:cachix/devenv/latest
- run: devenv shell python update.py
- run: nix flake check --keep-going --accept-flake-config --show-trace
- name: Create Pull Request
id: create-pull-request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update Python versions
title: Update Python versions
body: |
Automatically created pull-request to update Python versions.
This is the result of running:
```
devenv shell python update.py
```
delete-branch: true
- if: ${{ steps.create-pull-request.outputs.pull-request-operation == 'created' }}
uses: peter-evans/enable-pull-request-automerge@v3
with:
pull-request-number: ${{ steps.create-pull-request.outputs.pull-request-number }}