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 $(