-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (37 loc) · 1.25 KB
/
update-weekly.yml
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
name: weekly updates
on:
schedule:
- cron: "0 18 * * 1" # NOTE: Mondays at 6 pm GMT
jobs:
fenix:
runs-on: "ubuntu-latest"
steps:
- name: checkout
uses: actions/checkout@v4
- name: install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: update Fenix
run: nix flake lock --update-input fenix
- name: open PR
uses: peter-evans/create-pull-request@v5
with:
commit-message: update Fenix
branch: actions/update-weekly
title: Fenix update
body: >-
# Why
Rustaceans like having the latest nightly. Let's give it to them.
# What Changed
Updated fenix input.
# Notes
***Please*** test before merging!
This PR is created via a GitHub Actions Workflow. Please
take care to ensure its contents are correct. This Workflow
runs every week to ensure the rust-nightly module is regularly
updated.
- name: lock modules
run: nix develop -c python scripts/lock_modules.py
- name: push locked modules
run: |
git commit -am 'lock modules'
git push actions/update-weekly