Update actions/checkout from v2 to v3

This commit is contained in:
Henry Mercer
2022-03-30 19:42:05 +01:00
parent 7871f0d5e1
commit a2949f47b3
34 changed files with 54 additions and 54 deletions

View File

@@ -544,7 +544,7 @@ export async function getRef(): Promise<string> {
const head = await getCommitOid(checkoutPath, "HEAD");
// in actions/checkout@v2 we can check if git rev-parse HEAD == GITHUB_SHA
// in actions/checkout@v2+ we can check if git rev-parse HEAD == GITHUB_SHA
// 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