Skip to content

Commit 6ae3e33

Browse files
authored
Update dependents automatically on master pushes (#75)
This coupled with runtimeverification/devops#233, should automatically open update PRs into KMIR when there are updates to this repo. These PRs will be opened by the RV Jenkins GitHub user, and just need to be approved to be merged.
1 parent e3e1905 commit 6ae3e33

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/master.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: 'Master Release'
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
workflow_dispatch:
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
update-deps:
15+
name: "Update Dependents"
16+
steps:
17+
- name: 'Check out code'
18+
uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.event.push.head.sha }}
21+
fetch-depth: 0
22+
- name: 'Update dependents'
23+
run: |
24+
set -x
25+
VERSION=${{ github.event.push.head.sha }}
26+
curl --fail \
27+
-X POST \
28+
-H "Accept: application/vnd.github+json" \
29+
-H "Authorization: Bearer ${{ secrets.JENKINS_GITHUB_PAT }}" \
30+
-H "X-GitHub-Api-Version: 2022-11-28" \
31+
https://api.github.com/repos/runtimeverification/devops/dispatches \
32+
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/stable-mir-json","version":"'${VERSION}'"}}'

.github/workflows/test.yml

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: 'Test'
22
on:
33
pull_request:
44
branches: [ "master" ]
5-
push:
6-
branches: [ "master" ]
75
workflow_dispatch:
86
concurrency:
97
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)