Skip to content

Commit 842d7cb

Browse files
authored
Update main.yml
1 parent 0822a0a commit 842d7cb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,15 @@ jobs:
104104
name: rcssserver-x86_64
105105
path: ${{ github.workspace }}/artifact/*
106106
retention-days: 5
107-
107+
108+
- name: List files in artifact directory
109+
run: ls -l ${{ github.workspace }}/artifact/
110+
108111
- name: Check if there is no release with the same tag
109112
id: check_release
110113
run: |
111-
curl -s -o /dev/null -w "%{http_code}" https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ github.ref_name }} -u ${{ secrets.GITHUB_TOKEN }}:
112-
echo "::set-output name=release_exists::${{ steps.check_release.outputs.stdout }}"
114+
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 }})
115+
echo "::set-output name=release_exists::$result"
113116
114117
# ------------------------------------------- Release
115118
- name: Create Release

0 commit comments

Comments
 (0)