We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05bf29f commit ccbc653Copy full SHA for ccbc653
lib/cli/install/index.tsx
@@ -68,11 +68,12 @@ export async function install(args: string[]) {
68
})();
69
70
// get commit by tag name
71
- const sha = await getCommit(
72
- parsedAction.owner,
73
- parsedAction.repo,
74
- tagName,
75
- );
+ const sha = await (async () => {
+ const lockedSha =
+ actionsLockJson.actions[`${parsedAction.fullName}@${tagName}`];
+ if (lockedSha != null) return lockedSha;
+ return await getCommit(parsedAction.owner, parsedAction.repo, tagName);
76
+ })();
77
78
// update actions.json and actions-lock.json
79
actionsJson[parsedAction.fullName] = tagName;
0 commit comments