-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add job to update versions on schedule
- Loading branch information
1 parent
253e65a
commit 25a27ff
Showing
3 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: Update versions | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * 0" | ||
|
||
concurrency: | ||
group: update-versions | ||
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: | ||
author: GitHub <[email protected]> | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# nixpkgs-terraform | ||
All Terraform versions (>=1.5.0), kept up-to-date on a weekly basis using Nix. Heavily inspired by [cachix/nixpkgs-python](https://github.com/cachix/nixpkgs-python). | ||
|
||
[![CI](https://github.com/stackbuilders/nixpkgs-terraform/actions/workflows/ci.yml/badge.svg)](https://github.com/stackbuilders/nixpkgs-terraform/actions/workflows/ci.yml) |