-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (46 loc) · 1.55 KB
/
update.yml
File metadata and controls
51 lines (46 loc) · 1.55 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
40
41
42
43
44
45
46
47
48
49
50
51
name: Update Python versions
on:
schedule:
- cron: "5 * * * *"
workflow_dispatch:
permissions:
pull-requests: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: main
persist-credentials: false
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
- name: Install Nix
uses: cachix/install-nix-action@1ca7d21a94afc7c957383a2d217460d980de4934 # v31
- name: Install Cachix
uses: cachix/cachix-action@v17
with:
name: nixpkgs-python
extraPullNames: devenv
- name: Install devenv.sh
run: nix profile install github:cachix/devenv/latest
- run: devenv shell -- nixpkgs-python-update
- 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@v8
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 -- nixpkgs-python-update
```
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 }}