Skip to content

Commit

Permalink
Test build nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Jun 21, 2024
1 parent 42c9dbc commit 3a272a2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build_nigthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ jobs:
VERSION=$(grep '^version =' Cargo.toml | cut -d '"' -f2)
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Delete release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG_NAME=v${{ steps.get_version.outputs.VERSION }}-nightly
RELEASE_ID=$(curl -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/releases/tags/$TAG_NAME \
| jq -r '.id')
if [ "$RELEASE_ID" != "null" ]; then
curl -X DELETE -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/releases/$RELEASE_ID
echo "Release deleted"
else
echo "Release not found"
fi
- name: Create and push tag
run: |
echo "Created tag: v${{ steps.get_version.outputs.VERSION }}"
Expand Down

0 comments on commit 3a272a2

Please sign in to comment.