Skip to content

Commit

Permalink
updated workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu219 committed Sep 30, 2024
1 parent 34d6303 commit c9bae1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/V2App_review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ jobs:
- name: "Run Sumo Logic App Review tool"
run: |
export app_folder_path=$(echo "${SUMO_APPS_V2_REPO_PATH}/src/${app_path}" | sed "s/\"//g")
echo $app_folder_path
sumoappsuite review-v2-app -f $app_folder_path
sumoappsuite review-v2-app -f "$app_folder_path"
echo "excel_file_path=$app_folder_path/appreview*.xlsx" >> "$GITHUB_ENV"
- name: Upload Excel Sheet as PR Comment
id: upload_artifact
Expand All @@ -54,4 +53,5 @@ jobs:
run: |
PR_NUMBER=$(echo $GITHUB_REF | awk -F'/' '{print $3}')
ARTIFACT_URL="${{ steps.upload_artifact.outputs.artifact-url }}"
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -d "{\"body\": \"Reviewed app folder: ${app_path} Download the review feedback [sheet]($ARTIFACT_URL)\"}" "https://api.github.com/repos/${{ github.repository }}/issues/$PR_NUMBER/comments"
APP_NAME=$(cat scr_app_list.yaml | yq '.apps[0].name')
curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -d "{\"body\": \"Reviewed AppName: ${APP_NAME} Download the review feedback [sheet]($ARTIFACT_URL)\"}" "https://api.github.com/repos/${{ github.repository }}/issues/$PR_NUMBER/comments"

0 comments on commit c9bae1a

Please sign in to comment.