Skip to content

Commit

Permalink
chore: fail safe to current commit id
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ramos committed Jul 22, 2024
1 parent a9f18f8 commit 954bcc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
getChange,
removeChange,
getChangedPackages,
gitCurrentSha,
} from "@websublime/workspace-tools";
import { inspect } from "node:util";

Expand Down Expand Up @@ -32,7 +33,8 @@ export function getActionInfo({ context, root, branch, repoName }) {
context?.payload?.before ?? context?.payload?.pull_request?.head?.sha,
commitIdAfter:
context?.payload?.after ??
context?.payload?.pull_request?.merge_commit_sha,
context?.payload?.pull_request?.merge_commit_sha ??
gitCurrentSha(projectRoot),
ref,
eventName: context?.eventName,
headRef,
Expand Down

0 comments on commit 954bcc5

Please sign in to comment.