diff --git a/lib/actions-util.js b/lib/actions-util.js index 83a78e7cd..4f45467e0 100644 --- a/lib/actions-util.js +++ b/lib/actions-util.js @@ -452,7 +452,7 @@ async function getRef() { // in actions/checkout@v1 this may not be true as it checks out the repository // using GITHUB_REF. There is a subtle race condition where // git rev-parse GITHUB_REF != GITHUB_SHA, so we must check - // git git-parse GITHUB_REF == git rev-parse HEAD instead. + // git rev-parse GITHUB_REF == git rev-parse HEAD instead. const hasChangedRef = sha !== head && (await (0, exports.getCommitOid)(checkoutPath, ref.replace(/^refs\/pull\//, "refs/remotes/pull/"))) !== head; if (hasChangedRef) { diff --git a/src/actions-util.ts b/src/actions-util.ts index 17b521af7..66e4bb669 100644 --- a/src/actions-util.ts +++ b/src/actions-util.ts @@ -545,7 +545,7 @@ export async function getRef(): Promise { // in actions/checkout@v1 this may not be true as it checks out the repository // using GITHUB_REF. There is a subtle race condition where // git rev-parse GITHUB_REF != GITHUB_SHA, so we must check - // git git-parse GITHUB_REF == git rev-parse HEAD instead. + // git rev-parse GITHUB_REF == git rev-parse HEAD instead. const hasChangedRef = sha !== head && (await getCommitOid(