Skip to content

Commit 590f62e

Browse files
author
Rami Chowdhury
committed
Use Circle env vars rather than calling git
1 parent f76b9c3 commit 590f62e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ jobs:
4545
command: |
4646
poetry publish --build --username "${PYPI_USERNAME}" --password "${PYPI_PASSWORD}" --no-interaction
4747
48-
tag_describes_master:
48+
tag_is_on_master:
4949
docker:
5050
- image: circleci/python:3.7.3 # includes `poetry`!
5151
steps:
5252
- run:
53-
name: Check that the tag being built is at the tip of master
53+
name: Check that the tag being built is on master
5454
command: |
55-
[ "$(git describe master)" = "$CIRCLE_TAG" ]
55+
[ "$CIRCLE_BRANCH" = "master" ] && [ "" != "$CIRCLE_TAG" ]
5656
5757
# When to run which job
5858
workflows:
@@ -73,7 +73,7 @@ workflows:
7373
branches:
7474
ignore: /.*/
7575

76-
- tag_describes_master:
76+
- tag_is_on_master:
7777
filters:
7878
tags:
7979
only: /v[0-9]+(\.[0-9]+)*/

0 commit comments

Comments
 (0)