ci: fix release failure @W-21658353@ (#76)

ci: fix release failure
This commit is contained in:
Mohan Raj Rajamanickam 2026-03-19 22:12:13 -07:00 committed by GitHub
parent f87b74aca4
commit 3ae2d18d7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,6 +56,31 @@ jobs:
skip-on-empty: ${{ github.event_name == 'push' }}
version-file: "package.json"
output-file: "CHANGELOG.md"
git-push: "false"
- name: Report validate-skills status on release commit
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GH_TOKEN: ${{ secrets.IDEE_GH_TOKEN }}
run: |
SHA=$(git rev-parse HEAD)
gh api "repos/${{ github.repository }}/statuses/$SHA" \
-f state=success \
-f context=validate-skills \
-f description="Validated in release workflow"
- name: Verify tag does not already exist
if: ${{ steps.changelog.outputs.skipped == 'false' }}
run: |
TAG="${{ steps.changelog.outputs.tag }}"
if git ls-remote --tags origin | grep -q "refs/tags/$TAG$"; then
echo "::error::Tag $TAG already exists on remote. Delete it first if re-releasing: git push --delete origin $TAG"
exit 1
fi
- name: Push release commit and tag
if: ${{ steps.changelog.outputs.skipped == 'false' }}
run: git push origin main --follow-tags
- name: Create Github Release
id: release