Skip to content

Commit

Permalink
(fix): Update git-version.sh script (#3993)
Browse files Browse the repository at this point in the history
  • Loading branch information
amckinney authored Jul 5, 2024
1 parent d522e61 commit 8620c2c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ jobs:
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down Expand Up @@ -78,7 +81,10 @@ jobs:
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down Expand Up @@ -114,7 +120,10 @@ jobs:
AUTH0_CLIENT_ID: ${{ secrets.AUTH0_CLIENT_ID }}
POSTHOG_PROJECT_API_KEY: ${{ secrets.POSTHOG_PROJECT_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-node@v3
with:
node-version: 18
Expand Down
3 changes: 1 addition & 2 deletions scripts/git-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ if [[ -n "$CIRCLE_TAG" ]]; then
exit 0
fi

# if we're not on a tag in Circle but the current commit is tagged, then
# should then ignore the tag
# if the current commit is tagged, then should then ignore the tag
tag="$(git describe --exact-match --tags HEAD 2> /dev/null || :)"
if [[ -n "$tag" ]]; then
exclude_param="--exclude $tag"
Expand Down

0 comments on commit 8620c2c

Please sign in to comment.