-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (39 loc) · 1.28 KB
/
update.yaml
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
---
name: Update versions
on: push
# on:
# schedule:
# - cron: "5 * * * *"
concurrency:
group: update
cancel-in-progress: true
jobs:
check:
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v6
- name: Install tools via Nix
run: nix develop --impure --check
- name: Update versions
run: nix develop --impure --command python3 update-versions.py vendor-hash.nix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
id: create-pull-request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update Terraform versions
title: Update Terraform versions
body: |
Automatically created pull-request to update Terraform versions.
This is the result of running:
```
env GITHUB_TOKEN=<my-token> nix develop --impure --command python3 update-versions.py vendor-hash.nix
```
delete-branch: true