Skip to content

Commit

Permalink
Add update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tothtamas28 committed Nov 21, 2024
1 parent 10babc7 commit 6060024
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
- 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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "*"
Expand Down

0 comments on commit 6060024

Please sign in to comment.