Skip to content

Commit

Permalink
ci: fix tags check pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
andreszorro committed Mar 7, 2024
1 parent c048ff6 commit ca2cc2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Create changelog
run: |
mkdir ./dist
bun changelog --file ./dist/changelog.txt --tag $(git tag --list --sort=v:refname | grep -v beta | tail -n 1)
bun changelog --file ./dist/changelog.txt --tag $(git for-each-ref --sort=creatordate --format '%(refname:short)' refs/tags | grep -v beta | grep -v $(git describe --tags) | tail -n 1)
cat ./dist/changelog.txt
- uses: actions/download-artifact@v4
if: startsWith(github.ref, 'refs/tags/')
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euxo pipefail
BASE_DIR="$(pwd)"
RELEASE_DIR="dist/releases"
BIN_DIR="dist/bin"
SCFZ_VERSION="$(git tag --list | tail -n 1)"
SCFZ_VERSION="$(git describe --tags)"

export BASE_DIR RELEASE_DIR SCFZ_VERSION

Expand Down

0 comments on commit ca2cc2f

Please sign in to comment.