Skip to content

Commit

Permalink
Validate version and release notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
guzman-raphael committed Sep 21, 2022
1 parent a344902 commit 54a966e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@ jobs:
COMPOSE_HTTP_TIMEOUT: "120"
steps:
- uses: actions/checkout@v2
- name: Validate version and release notes
run: |
DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
RELEASE_BODY=$(python -c \
'print(open("./CHANGELOG.md").read().split("\n\n")[1].split("\n", 1)[1])' \
)
echo "DJ_VERSION=${DJ_VERSION}" >> $GITHUB_ENV
echo "RELEASE_BODY='${RELEASE_BODY}'" >> $GITHUB_ENV
- name: Build pip artifacts
run: |
export DJ_VERSION=$(grep -oP '\d+\.\d+\.\d+' datajoint/version.py)
export HOST_UID=$(id -u)
docker-compose -f docker-compose-build.yaml up --exit-code-from app --build
echo "DJ_VERSION=${DJ_VERSION}" >> $GITHUB_ENV
Expand Down

0 comments on commit 54a966e

Please sign in to comment.