From cfbadf638fb33c84552d7f4b1444e2f4e7dc0fdc Mon Sep 17 00:00:00 2001 From: Sumit Patel <89197795+Dark-Kernel@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:33:28 +0530 Subject: [PATCH] Cleaned add-playlist-workflow.yml --- .github/workflows/add-playlist-workflow.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/add-playlist-workflow.yml b/.github/workflows/add-playlist-workflow.yml index 139e7cb..a94b6e2 100644 --- a/.github/workflows/add-playlist-workflow.yml +++ b/.github/workflows/add-playlist-workflow.yml @@ -36,9 +36,7 @@ jobs: EVENT_ID: ${{ github.event.issue.number }} ISSUE_BODY: ${{ github.event.issue.body }} run: | - 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) PLAYLIST_URL=$(echo "$BODY" | grep "### YouTube Playlist URL" -A 2 | tail -n 1) PLAYLIST_SUMMARY=$(echo "$BODY" | grep "### Playlist Summary" -A 2 | tail -n 1) @@ -61,9 +59,7 @@ jobs: # # Set outputs # echo "creator=$CREATOR" >> $GITHUB_OUTPUT # echo "playlist_title=$PLAYLIST_TITLE" >> $GITHUB_OUTPUT - # # Extract JSON from issue body - # Run the verify_playlist.py script # Verify the playlist python .github/scripts/verify_playlist.py temp_playlist.json if [[ $? -ne 0 ]]; then @@ -80,10 +76,8 @@ jobs: exit 1 fi - # Create a new branch issue_number=$EVENT_ID - echo "eventid====> $EVENT_ID" branch_name="contribution-$issue_number" git checkout -b "$branch_name" git add playlist.json @@ -95,7 +89,7 @@ jobs: # Create a pull request pr_url="https://api.github.com/repos/${{github.repository}}/pulls" pr_data=$(jq -n --arg title "Contribution from issue #$issue_number" \ - --arg body "This PR adds the contribution from issue #$issue_number with\n $(