-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (45 loc) · 1.27 KB
/
update.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: Update
on:
schedule:
- cron: "0 0 * * *"
concurrency:
group: update
cancel-in-progress: true
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main
- name: Install Nix
uses: cachix/install-nix-action@V27
- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: devenv
- name: Install devenv
run: nix-env -if https://install.devenv.sh/latest
- name: Update versions
run: devenv shell update-versions
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
author: GitHub <noreply@github.com>
commit-message: Update Terraform versions
title: "feat: Update Terraform versions"
body: |
Automatically created pull-request to update Terraform versions.
This is the result of configuring a GITHUB_TOKEN in `.env` and running:
```
devenv shell update-versions
```
delete-branch: true
reviewers: |
oscar-izval
sestrella
token: ${{ secrets.BOT_TOKEN }}