Skip to content

Commit

Permalink
release id
Browse files Browse the repository at this point in the history
Signed-off-by: Conrad Hübler <Conrad.Huebler@gmx.net>
  • Loading branch information
conradhuebler committed Dec 27, 2024
1 parent ece35cc commit ccf71c7
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,6 @@ jobs:
run: |
sudo zypper --non-interactive install curl
- name: Get Release ID
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
RELEASE_ID=$(curl -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/conradhuebler/harbour-tidalplayer/releases/tags/master | \
grep -o '"id": [0-9]*' | head -1 | cut -d' ' -f2)
echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_ENV
- name: Upload to Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -65,4 +54,4 @@ jobs:
-H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/x-rpm" \
--data-binary @harbour-tidalplayer-master-1.noarch.rpm \
"https://uploads.github.com/repos/conradhuebler/harbour-tidalplayer/releases/${RELEASE_ID}/assets?name=harbour-tidalplayer-master-1.noarch.rpm"
"https://uploads.github.com/repos/conradhuebler/harbour-tidalplayer/releases/148043359/assets?name=harbour-tidalplayer-master-1.noarch.rpm"

0 comments on commit ccf71c7

Please sign in to comment.