Skip to content

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
  • Loading branch information
coldsofttech committed May 4, 2024
1 parent 3e018bb commit 94914dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
echo $BRANCH_NAME
- name: Check for existing release
- name: Check For Existing Release (Ubuntu & MacOS)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: |
TAG_NAME="v${{ env.BRANCH_NAME }}"
RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/coldsofttech/action-pylint/releases/tags/${TAG_NAME}")
RELEASE_ID=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/coldsofttech/action-pylint/releases/tags/${TAG_NAME}" | jq -r '.id // empty')
echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_ENV
echo $RELEASE_ID
- name: Delete existing release
Expand Down

0 comments on commit 94914dc

Please sign in to comment.