From 21d41823ba8d40425643a1e66de96b93b36a03e5 Mon Sep 17 00:00:00 2001 From: Sumit Patel <89197795+Dark-Kernel@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:22:52 +0530 Subject: [PATCH] Update add-playlist-workflow.yml --- .github/workflows/add-playlist-workflow.yml | 38 ++++++++------------- 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/.github/workflows/add-playlist-workflow.yml b/.github/workflows/add-playlist-workflow.yml index a18d2e6..139e7cb 100644 --- a/.github/workflows/add-playlist-workflow.yml +++ b/.github/workflows/add-playlist-workflow.yml @@ -33,14 +33,14 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_CONTEXT: ${{ toJson(github) }} - EVENT_ID: ${{ github.event.issue.id }} + 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 1 | 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) PLAYLIST_CATEGORY=$(echo "$BODY" | grep "Category" -A 2 | tail -n 1) CREATOR="${{ github.event.issue.user.login }}" @@ -95,7 +95,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" \ + --arg body "This PR adds the contribution from issue #$issue_number with\n $(