Skip to content

Commit

Permalink
gh pr diff with single argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushi-agrawal-gladstone authored Sep 19, 2024
1 parent 97cd027 commit 7d7b93a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/1_on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -788,10 +788,9 @@ jobs:
id: fetch_diff
run: |
PR_NUMBER="${{ needs.get-pr.outputs.pr-number }}"
GPML_FILE="${{ needs.get-gpml.outputs.gpml-file }}"
# Fetch the diff for the GPML file in the current PR
diff_output=$(git-diff "$PR_NUMBER" -- "$GPML_FILE")
# Fetch the entire diff for the PR
diff_output=$(gh pr diff "$PR_NUMBER")
echo "$diff_output"
echo "diff_output=$diff_output" >> $GITHUB_ENV
Expand Down

0 comments on commit 7d7b93a

Please sign in to comment.