Skip to content

Commit

Permalink
Read version from env
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 20, 2019
1 parent 07a42ee commit 54b8fa6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/on_release_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ jobs:
with:
python-version: "3.7"
- name: Bump version
env:
VERSION: ${{ steps.vars.outputs.version }}
run: |
scripts/bump_version.sh ${{ steps.vars.outputs.version }}
scripts/bump_version.sh
- name: Install builder
run: |
python -m pip install --upgrade pip
Expand All @@ -33,8 +35,9 @@ jobs:
- name: Dockerize
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.vars.outputs.version }}
run: |
scripts/dockerize.sh ${{ steps.vars.outputs.version }}
scripts/dockerize.sh
- name: Build packages
run: |
rm -rf mypy_boto3_output/*
Expand Down
2 changes: 0 additions & 2 deletions scripts/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ set -e
ROOT_PATH=$(dirname $(dirname $(realpath $0)))
cd ${ROOT_PATH}

VERSION="$1"

if [[ "$GITHUB_ACTOR" == "" ]]; then
echo "No GITHUB_ACTOR specified"
exit 1
Expand Down
2 changes: 0 additions & 2 deletions scripts/dockerize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ set -e
ROOT_PATH=$(dirname $(dirname $(realpath $0)))
cd ${ROOT_PATH}

VERSION="$1"

if [[ "$VERSION" == "" ]]; then
echo "No version specified"
exit 1
Expand Down

0 comments on commit 54b8fa6

Please sign in to comment.