Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
naderzare authored Apr 23, 2024
1 parent 0822a0a commit 842d7cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,15 @@ jobs:
name: rcssserver-x86_64
path: ${{ github.workspace }}/artifact/*
retention-days: 5


- name: List files in artifact directory
run: ls -l ${{ github.workspace }}/artifact/

- name: Check if there is no release with the same tag
id: check_release
run: |
curl -s -o /dev/null -w "%{http_code}" https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ github.ref_name }} -u ${{ secrets.GITHUB_TOKEN }}:
echo "::set-output name=release_exists::${{ steps.check_release.outputs.stdout }}"
result=$(curl -s -o /dev/null -w "%{http_code}" https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ github.ref_name }} -u ${{ secrets.GITHUB_TOKEN }})
echo "::set-output name=release_exists::$result"
# ------------------------------------------- Release
- name: Create Release
Expand Down

0 comments on commit 842d7cb

Please sign in to comment.