File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 4141 INPUT_HEAD_REF : ${{ inputs.head_ref }}
4242 INPUT_PATH : ${{ inputs.path }}
4343 INPUT_DO_NOT_REPORT : ${{ inputs.do_not_report }}
44+ GH_TOKEN : ${{ github.token }}
4445 run : ${{ github.action_path }}/merge
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ report_failure() {
1212cd " $INPUT_PATH " || report_failure " Could not change to input_path ($INPUT_PATH )"
1313SENDER=$( jq -r .sender.login " $GITHUB_EVENT_PATH " )
1414USER_JSON=$( mktemp)
15- curl -s " $GITHUB_API_URL /users/$SENDER " -o " $USER_JSON "
15+ gh api " /users/$SENDER " > " $USER_JSON "
1616export GIT_AUTHOR_NAME=$( jq -r .name " $USER_JSON " )
1717export GIT_AUTHOR_EMAIL=$( jq -r ' .email // empty' " $USER_JSON " )
1818if [ -z " $GIT_AUTHOR_EMAIL " ]; then
You can’t perform that action at this time.
0 commit comments