From 60600241171e441a7a140d87e0693bf094c27662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20T=C3=B3th?= Date: Thu, 21 Nov 2024 14:31:08 +0000 Subject: [PATCH] Add update workflow --- .github/workflows/update-version.yml | 35 ++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/update-version.yml diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml new file mode 100644 index 0000000..3b7eb7e --- /dev/null +++ b/.github/workflows/update-version.yml @@ -0,0 +1,35 @@ +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: + token: ${{ secrets.JENKINS_GITHUB_PAT }} + - name: 'Configure GitHub user' + run: | + git config user.name devops + git config user.email devops@runtimeverification.com + - name: 'Install Poetry' + uses: Gr1N/setup-poetry@v9 + - name: 'Update kframework release tag' + run: | + K_VERSION=$(cat deps/k_release) + sed -i 's!kframework = "[0-9\.]*"!kframework = "'${K_VERSION}'"!' pyproject.toml + poetry update + git add pyproject.toml poetry.lock + git commit -m "Sync Poetry files: kframework ${K_VERSION}" || true + - name: 'Push updates' + run: git push diff --git a/pyproject.toml b/pyproject.toml index 217599b..4f469b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ imp-semantics = "kimp.kdist.plugin" [tool.poetry.dependencies] python = "^3.10" -kframework = "v7.1.170" +kframework = "7.0.0" [tool.poetry.group.dev.dependencies] autoflake = "*"