File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,18 +24,18 @@ jobs:
24
24
UPSTREAM_RELEASE=$(gh api repos/zed-industries/zed/releases/latest --jq '{tag_name, body}')
25
25
UPSTREAM_TAG=$(echo "$UPSTREAM_RELEASE" | jq -r '.tag_name')
26
26
echo "Latest upstream release: $UPSTREAM_TAG"
27
-
27
+
28
28
# Get latest stable release tag from current repo
29
- CURRENT_TAG=$(gh api repos/${{ github.repository }}/releases --jq '[.[] | select(.prerelease == false)] | sort_by(.created_at) | reverse | .[0] .tag_name // "none"')
29
+ CURRENT_TAG=$(gh api repos/${{ github.repository }}/releases/latest --jq '.tag_name // "none"')
30
30
echo "Latest current repo release: $CURRENT_TAG"
31
-
31
+
32
32
# Set variables based on comparison
33
33
if [ "$UPSTREAM_TAG" != "$CURRENT_TAG" ]; then
34
34
echo "Building stable release from upstream tag: $UPSTREAM_TAG"
35
35
echo "build_ref=$UPSTREAM_TAG" >> $GITHUB_OUTPUT
36
36
echo "release_tag=$UPSTREAM_TAG" >> $GITHUB_OUTPUT
37
37
echo "should_build=true" >> $GITHUB_OUTPUT
38
-
38
+
39
39
# Copy over the release body from the repository
40
40
RELEASE_BODY=$(echo "$UPSTREAM_RELEASE" | jq -r '.body')
41
41
# Use delimiter syntax for multiline outputs
You can’t perform that action at this time.
0 commit comments