Skip to content

Commit

Permalink
Update add-playlist-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark-Kernel authored Nov 24, 2024
1 parent bfa06d6 commit 06ca2ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/add-playlist-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- name: Install dependencies
run: |
sudo apt update && sudo apt install jq curl -y
python -m pip install --upgrade pip
pip install jsonschema requests
- name: Validate JSON and process contribution
env:
Expand All @@ -34,7 +36,7 @@ jobs:
EVENT_ID: ${{ github.event.payload.issue.number }}
ISSUE_BODY: ${{ github.event.issue.body }}
run: |
echo "Github context: $GITHUB_CONTEXT"
echo "eventid: $EVENT_ID, Github context: cool"
BODY="$ISSUE_BODY"
echo "body ===> $BODY"
PLAYLIST_TITLE=$(echo "$BODY" | grep "### Playlist Title" -A 2 | tail -n 1)
Expand All @@ -53,7 +55,7 @@ jobs:
\"user_profile_link\": \"https://github.com/$CREATOR\",
\"user_image\": \"https://avatars.githubusercontent.com/$CREATOR\"
}
""" > temp_playlist.json
""" | tee temp_playlist.json
# # Set outputs
Expand Down

0 comments on commit 06ca2ca

Please sign in to comment.