chore: update version + change log (#5) #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release PR Create | ||
on: | ||
pull_request: | ||
types: [ opened ] | ||
branches: [ main ] | ||
env: | ||
ARTIFACT_BASE_NAME: mdps-ds-lib | ||
PR_NUMBER: ${{ github.event.number }} | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
GH_TOKEN: ${{ github.token }} | ||
jobs: | ||
if: !(contains(github.event.pull_request.title, 'update version + change log')) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.9' | ||
- run: | | ||
echo "${PR_TITLE} -- ${PR_NUMBER}" | ||
- run: | | ||
python3 "${GITHUB_WORKSPACE}/.ci/update_setup_version.py" RELEASE | ||
- run: | | ||
chmod +x "${GITHUB_WORKSPACE}/.ci/update_version_commit.sh" | ||
"${GITHUB_WORKSPACE}/.ci/update_version_commit.sh" |