Skip to content

Commit 54a966e

Browse files
Validate version and release notes.
1 parent a344902 commit 54a966e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/development.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,16 @@ jobs:
2828
COMPOSE_HTTP_TIMEOUT: "120"
2929
steps:
3030
- uses: actions/checkout@v2
31+
- name: Validate version and release notes
32+
run: |
33+
DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
34+
RELEASE_BODY=$(python -c \
35+
'print(open("./CHANGELOG.md").read().split("\n\n")[1].split("\n", 1)[1])' \
36+
)
37+
echo "DJ_VERSION=${DJ_VERSION}" >> $GITHUB_ENV
38+
echo "RELEASE_BODY='${RELEASE_BODY}'" >> $GITHUB_ENV
3139
- name: Build pip artifacts
3240
run: |
33-
export DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
3441
export HOST_UID=$(id -u)
3542
docker-compose -f docker-compose-build.yaml up --exit-code-from app --build
3643
echo "DJ_VERSION=${DJ_VERSION}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)