diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2cb6f98..182ef74 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,12 +30,18 @@ jobs: pip install --constraint=.github/workflows/constraints.txt poetry poetry --version + - name: Check if there is a parent commit + id: check-parent-commit + run: | + echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)" + - name: Detect and tag new version id: check-version + if: steps.check-parent-commit.outputs.sha uses: salsify/action-detect-and-tag-new-version@v2.0.1 with: version-command: | - poetry version | awk '{ print $2 }' + bash -o pipefail -c "poetry version | awk '{ print \$2 }'" - name: Bump version for developmental release if: "! steps.check-version.outputs.tag"