File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 9191 draft : false
9292 prerelease : false
9393
94- - name : Mark release as latest
95- run : |
96- TAG=${{ steps.get_version.outputs.tag }}
97- REPO="${{ github.repository }}"
98-
99- # Get the release ID
100- RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
101- "https://api.github.com/repos/${REPO}/releases/tags/${TAG}" | \
102- grep -o '"id":[0-9]*' | head -1 | cut -d':' -f2)
103-
104- if [ -n "$RELEASE_ID" ]; then
105- # Mark as latest
106- curl -X PATCH \
107- -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
108- -H "Accept: application/vnd.github.v3+json" \
109- "https://api.github.com/repos/${REPO}/releases/${RELEASE_ID}" \
110- -d '{"make_latest": true}'
111- echo "✅ Release marked as latest"
112- else
113- echo "⚠️ Could not find release ID for tag ${TAG}"
114- fi
115-
11694 - name : Wait for GitHub to generate tarball
11795 run : sleep 10
11896
You can’t perform that action at this time.
0 commit comments