Update #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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@v26 | |
- name: Setup Cachix | |
uses: cachix/cachix-action@v14 | |
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 <[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 GITHUB_TOKEN in `.env` and running: | |
``` | |
devenv shell update-versions | |
``` | |
delete-branch: true | |
reviewers: | | |
oscar-izval | |
sestrella | |
token: ${{ secrets.BOT_TOKEN }} |