native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use published releases for release note range

khoi 8d79e6d8 b2e49a1b

+13 -2
+13 -2
.github/workflows/release.yml
··· 19 19 runs-on: ubuntu-latest 20 20 permissions: 21 21 contents: read 22 + env: 23 + RELEASE_REPO_SH: supabitapp/supacode-sh 24 + GH_TOKEN: ${{ github.token }} 22 25 steps: 23 26 - uses: actions/checkout@v4 24 27 with: ··· 33 36 - name: Prepare release context 34 37 run: | 35 38 set -euo pipefail 36 - PREV_TAG=$(git describe --tags --abbrev=0 --match "v*" "$TAG^" 2>/dev/null || true) 39 + RELEASE_TAGS=$(gh release list -R "$RELEASE_REPO_SH" --limit 100 | awk '{print $1}') 40 + PREV_TAG=$(printf '%s\n' "$RELEASE_TAGS" | awk -v tag="$TAG" '$1!=tag {print $1; exit}') 41 + if [ -z "$PREV_TAG" ]; then 42 + PREV_TAG=$(git describe --tags --abbrev=0 --match "v*" "$TAG^" 2>/dev/null || true) 43 + fi 37 44 if [ -n "$PREV_TAG" ]; then 38 - RANGE="$PREV_TAG..$TAG" 45 + if git rev-parse "$PREV_TAG" >/dev/null 2>&1; then 46 + RANGE="$PREV_TAG..$TAG" 47 + else 48 + RANGE="$(git rev-list --max-parents=0 "$TAG")..$TAG" 49 + fi 39 50 else 40 51 RANGE="$(git rev-list --max-parents=0 "$TAG")..$TAG" 41 52 fi