-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (50 loc) · 1.44 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
51
52
53
54
55
---
name: Update
on:
workflow_dispatch:
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@v30
with:
nix_path: nixpkgs=channel:nixos-24.05-small
- name: Install devenv
run: |
nix profile install --accept-flake-config nixpkgs#devenv
devenv version
- name: Update versions
run: |
devenv shell -- go run . update-versions \
--versions ../versions.json \
--vendor-hash ../vendor-hash.nix
env:
CLI_GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
working-directory: cli
- name: Create pull request
uses: peter-evans/create-pull-request@v7
with:
author: GitHub <[email protected]>
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 CLI_GITHUB_TOKEN in `.env` and running:
```
cli update-versions
```
delete-branch: true
reviewers: |
oscar-izval
sestrella
token: ${{ secrets.BOT_TOKEN }}