diff --git a/action.yml b/action.yml index ad3111d..c29db09 100644 --- a/action.yml +++ b/action.yml @@ -46,10 +46,10 @@ inputs: default: ${{ github.event.pull_request.body }} pr_commit_message: description: 'Commit message' - default: ${{ github.event.head_commit.message }} + default: ${{ github.event.commits[0].message }} pr_branch_name: description: 'PR Branch name' - default: ${{ github.ref }} + default: ${{ github.head_ref }} runs: using: 'node12' main: 'dist/index.js' diff --git a/index.js b/index.js index 9c9bd14..3ce6be4 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,7 @@ const buildPrContent = () => { let message = '-------------------------------------\n' + `Workflow build ${status}!\n` + - `Title: ${title}\n` + + `Title: ${prTitle}\n` + `Branch: ${prBranchName}\n` + `User: ${ghActor}\n` + 'Commit Msg:\n' +