Skip to content

deps/k_release: Set Version 7.0.46 #52

deps/k_release: Set Version 7.0.46

deps/k_release: Set Version 7.0.46 #52

name: 'Update Version'
on:
push:
branches:
- '_update-deps/runtimeverification/k'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-versions:
name: 'Update Dependency Versions'
runs-on: ubuntu-latest
steps:
- name: 'Check out code'
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.JENKINS_GITHUB_PAT }}
fetch-depth: 0
- name: 'Configure GitHub user'
run: |
git config user.name devops
git config user.email [email protected]
- name: 'Install Poetry'
uses: Gr1N/setup-poetry@v9
- name: 'Update pyk release tag'
run: |
K_VERSION=v$(cat deps/k_release)
sed -i 's!pyk = { git = "https://github.com/runtimeverification/k.git", tag="[v0-9\.]*", subdirectory = "pyk" }!pyk = { git = "https://github.com/runtimeverification/k.git", tag="'${K_VERSION}'", subdirectory = "pyk" }!' krypto/pyproject.toml
poetry -C krypto update
git add krypto/ && git commit -m "krypto/: sync poetry files pyk version ${K_VERSION}" || true
- name: 'Push updates'
run: git push