please work
This commit is contained in:
@@ -19,6 +19,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -47,9 +49,15 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# Delete the release (--cleanup-tag attempts to delete the tag too)
|
# Find and delete any release with this tag_name, even if the git tag no longer exists.
|
||||||
gh release delete Overlord-Desktop-v${{ env.VERSION }} --yes --cleanup-tag || true
|
# gh release delete requires the tag ref to exist, so we use the API directly instead.
|
||||||
# Explicitly delete the git tag ref via API in case the above didn't clean it up
|
RELEASE_ID=$(gh api /repos/${{ github.repository }}/releases \
|
||||||
|
--jq '.[] | select(.tag_name == "Overlord-Desktop-v${{ env.VERSION }}") | .id' \
|
||||||
|
2>/dev/null | head -1)
|
||||||
|
if [ -n "$RELEASE_ID" ]; then
|
||||||
|
gh api --method DELETE /repos/${{ github.repository }}/releases/$RELEASE_ID || true
|
||||||
|
fi
|
||||||
|
# Also delete the git tag ref if it somehow still exists
|
||||||
gh api --method DELETE /repos/${{ github.repository }}/git/refs/tags/Overlord-Desktop-v${{ env.VERSION }} || true
|
gh api --method DELETE /repos/${{ github.repository }}/git/refs/tags/Overlord-Desktop-v${{ env.VERSION }} || true
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|||||||
@@ -67,4 +67,4 @@ form.addEventListener("submit", async (e) => {
|
|||||||
connectBtn.disabled = false;
|
connectBtn.disabled = false;
|
||||||
connectBtn.querySelector(".btn-text").textContent = "Connect";
|
connectBtn.querySelector(".btn-text").textContent = "Connect";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user