Skip to content

Commit 63b197f

Browse files
committed
add update-version.yml workflow for rv-nix-tools and poetry updates
1 parent 76359d7 commit 63b197f

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: 'Update Version'
2+
on:
3+
push:
4+
branches:
5+
- '_update-deps/runtimeverification/rv-nix-tools'
6+
workflow_dispatch:
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
update-deps:
13+
name: 'Update Dependencies'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 'Check out code'
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
20+
token: ${{ secrets.JENKINS_GITHUB_PAT }}
21+
fetch-depth: 0
22+
- name: 'Configure GitHub user'
23+
run: |
24+
git config user.name devops
25+
git config user.email devops@runtimeverification.com
26+
- name: 'Install Poetry'
27+
uses: Gr1N/setup-poetry@v9
28+
- name: 'Install Nix'
29+
uses: cachix/install-nix-action@v22
30+
with:
31+
install_url: https://releases.nixos.org/nix/nix-2.13.3/install
32+
extra_nix_config: |
33+
substituters = http://cache.nixos.org https://hydra.iohk.io
34+
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
35+
- name: 'Update Poetry files'
36+
run: |
37+
poetry update
38+
git add . && git commit -m "Sync Poetry files" || true
39+
- name: 'Update Nix flake inputs'
40+
run: |
41+
RV_NIX_TOOLS_VERSION=$(cat deps/rv-nix-tools)
42+
sed -i 's! rv-nix-tools.url = "github:runtimeverification/rv-nix-tools/[a-z0-9\.]*"! rv-nix-tools.url = "github:runtimeverification/rv-nix-tools/'"${RV_NIX_TOOLS_VERSION}"'"!' flake.nix
43+
nix flake update
44+
git add flake.nix flake.lock && git commit -m 'flake.{nix,lock}: update Nix derivations' || true
45+
- name: 'Push updates'
46+
run: git push

deps/rv-nix-tools

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
854d4f05ea78547d46e807b414faad64cea10ae4

0 commit comments

Comments
 (0)