Updated to checkout the code first since not all workflows(merge_queue) will check have the PR_URL setting set. Then grab the shas from the relevant event payload and use those to get the list of affected files.
add-depr-ticket-to-depr-board.yml
add-remove-label-on-comment.yml
self-assign-issue.yml