Skip to content

Commit

Permalink
The order of notifying downstreams happens before artifacts are ready… (
Browse files Browse the repository at this point in the history
#96)

* The order of notifying downstreams happens before artifacts are ready to pull (fixing here)

* Set Version: 0.1.24

* needs will force non parallel jobs

* Update .github/workflows/master-push.yml

Co-authored-by: Tamás Tóth <tothtamas28@users.noreply.github.com>

* Set Version: 0.1.25

---------

Co-authored-by: devops <devops@runtimeverification.com>
Co-authored-by: Tamás Tóth <tothtamas28@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 11, 2023
1 parent 27d42f3 commit d6efed1
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 34 deletions.
64 changes: 33 additions & 31 deletions .github/workflows/master-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,6 @@ on:

jobs:

cut-release:
name: 'Cut Release'
runs-on: ubuntu-latest
steps:
- name: 'Check out code'
uses: actions/checkout@v3
with:
ref: ${{ github.event.push.head.sha }}
fetch-depth: 0

- name: 'Create release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
VERSION=v$(cat package/version)
gh release create ${VERSION} --target ${{ github.sha }}
- name: 'Update dependents'
run: |
set -x
VERSION=$(cat package/version)
curl --fail \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.JENKINS_GITHUB_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/runtimeverification/devops/dispatches \
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/kontrol","version":"'${VERSION}'"}}'
nix-cache:
name: 'Populate Nix Cache'
strategy:
Expand Down Expand Up @@ -107,3 +76,36 @@ jobs:
run: |
echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login --username rvdockerhub --password-stdin
docker image push ${TAG}
cut-release:
name: 'Cut Release'
runs-on: ubuntu-latest
needs: dockerhub
steps:
- name: 'Check out code'
uses: actions/checkout@v3
with:
ref: ${{ github.event.push.head.sha }}
fetch-depth: 0

- name: 'Create release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
VERSION=v$(cat package/version)
gh release create ${VERSION} --target ${{ github.sha }}
- name: 'Update dependents'
run: |
set -x
VERSION=$(cat package/version)
curl --fail \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.JENKINS_GITHUB_PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/runtimeverification/devops/dispatches \
-d '{"event_type":"on-demand-test","client_payload":{"repo":"runtimeverification/kontrol","version":"'${VERSION}'"}}'
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.24
0.1.25
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "kontrol"
version = "0.1.24"
version = "0.1.25"
description = "Foundry integration for KEVM"
authors = [
"Runtime Verification, Inc. <contact@runtimeverification.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/kontrol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
if TYPE_CHECKING:
from typing import Final

VERSION: Final = '0.1.24'
VERSION: Final = '0.1.25'

0 comments on commit d6efed1

Please sign in to comment.