Skip to content

Commit 0526095

Browse files
Add job for notifying dependents (#68)
Co-authored-by: devops <[email protected]>
1 parent ae15f5d commit 0526095

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed

.github/workflows/master.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
release:
1010
name: 'Publish Release'
11-
runs-on: [self-hosted, linux, flyweight]
11+
runs-on: ubuntu-24.04
1212
steps:
1313
- name: 'Check out code'
1414
uses: actions/checkout@v4
@@ -22,3 +22,24 @@ jobs:
2222
set -x
2323
VERSION=v$(cat package/version)
2424
gh release create ${VERSION} --target ${{ github.sha }}
25+
26+
notify:
27+
name: 'Notify Dependents'
28+
runs-on: ubuntu-24.04
29+
needs: release
30+
steps:
31+
- name: Check out code
32+
uses: actions/checkout@v4
33+
- name: 'Update dependents'
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.JENKINS_GITHUB_PAT }}
36+
run: |
37+
set -x
38+
VERSION=$(cat package/version)
39+
curl --fail \
40+
-X POST \
41+
-H "Accept: application/vnd.github+json" \
42+
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
43+
-H "X-GitHub-Api-Version: 2022-11-28" \
44+
https://api.github.com/repos/runtimeverification/devops/dispatches \
45+
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/riscv-semantics","version":"'"${VERSION}"'"}}'

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
version-bump:
1212
name: 'Version Bump'
13-
runs-on: [self-hosted, linux, flyweight]
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- name: 'Check out code'
1616
uses: actions/checkout@v4
@@ -35,10 +35,16 @@ jobs:
3535
code-quality-checks:
3636
needs: version-bump
3737
name: 'Code Quality Checks'
38-
runs-on: [self-hosted, linux, flyweight]
38+
runs-on: ubuntu-24.04
3939
steps:
4040
- name: 'Check out code'
4141
uses: actions/checkout@v4
42+
- name: 'Install Python'
43+
uses: actions/setup-python@v5
44+
with:
45+
python-version: '3.10'
46+
- name: 'Install Poetry'
47+
uses: Gr1N/setup-poetry@v9
4248
- name: 'Run code quality checks'
4349
run: make check
4450
- name: 'Run pyupgrade'

.github/workflows/update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
jobs:
1212
update-deps:
1313
name: 'Update Dependecies'
14-
runs-on: [self-hosted, linux, flyweight]
14+
runs-on: ubuntu-24.04
1515
steps:
1616
- name: 'Check out code'
1717
uses: actions/checkout@v4

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.54
1+
0.1.55

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "kriscv"
7-
version = "0.1.54"
7+
version = "0.1.55"
88
description = "K tooling for the RISC-V architecture"
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",

0 commit comments

Comments
 (0)