Skip to content

Commit

Permalink
refactor(actions-set-shas): Log full payload to test
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed May 15, 2024
1 parent c2a0905 commit 74a7fca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actions/set-shas/src/set-shas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ async function run() {
const mainBranchName = core.getInput('main-branch-name')

core.info(`Got head sha "${github.context.sha}"`)
let baseSha
let baseSha: string

if (github.context.eventName === 'pull_request') {
core.info(`This is a pull request, get sha from "origin/${mainBranchName}"`)
console.log('github.context.payload.pull_request',github.context.payload.pull_request)

baseSha = execCommand(`git merge-base origin/${mainBranchName} HEAD`, {
asString: true,
silent: !core.isDebug()
Expand Down

0 comments on commit 74a7fca

Please sign in to comment.