Skip to content

Commit 756735b

Browse files
committed
Add update workflow
1 parent 10babc7 commit 756735b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/update-version.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 'Update Version'
2+
on:
3+
push:
4+
branches:
5+
- '_update-deps/runtimeverification/k'
6+
workflow_dispatch:
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
13+
update-versions:
14+
name: 'Update Dependency Versions'
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: 'Check out code'
18+
uses: actions/checkout@v4
19+
with:
20+
token: ${{ secrets.JENKINS_GITHUB_PAT }}
21+
- name: 'Configure GitHub user'
22+
run: |
23+
git config user.name devops
24+
git config user.email [email protected]
25+
- name: 'Install Poetry'
26+
uses: Gr1N/setup-poetry@v9
27+
- name: 'Update kframework release tag'
28+
run: |
29+
K_VERSION=$(cat deps/k_release)
30+
sed -i 's!kframework = "[0-9\.]*"!kframework = "'${K_VERSION}'"!' pyproject.toml
31+
poetry update
32+
git add . && git commit -m "Sync Poetry files: kframework ${K_VERSION}" || true
33+
- name: 'Push updates'
34+
run: git push

0 commit comments

Comments
 (0)