File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ jobs:
435435 return;
436436 }
437437
438- const gitContextAttrs = GitHub.context.ref.startsWith('refs/tags/') ? {} : {'fetch-by-commit': 'true'};
438+ const gitContextAttrs = GitHub.context.ref.startsWith('refs/tags/') ? {checksum: GitHub.context.sha } : {'fetch-by-commit': 'true'};
439439 const bakeSource = await new Build().gitContext({subdir: inpContext, attrs: gitContextAttrs});
440440 await core.group(`Set bake source`, async () => {
441441 core.info(bakeSource);
@@ -855,7 +855,7 @@ jobs:
855855 };
856856 const renderTemplate = value => Util.compileHandlebars(value, {noEscape: true}, {meta});
857857
858- const gitContextAttrs = GitHub.context.ref.startsWith('refs/tags/') ? {} : {'fetch-by-commit': 'true'};
858+ const gitContextAttrs = GitHub.context.ref.startsWith('refs/tags/') ? {checksum: GitHub.context.sha } : {'fetch-by-commit': 'true'};
859859 const bakeSource = await new Build().gitContext({subdir: inpContext, attrs: gitContextAttrs});
860860 await core.group(`Set source output`, async () => {
861861 core.info(bakeSource);
Original file line number Diff line number Diff line change @@ -748,7 +748,7 @@ jobs:
748748 const renderTemplate = value => Util.compileHandlebars(value, {noEscape: true}, {meta});
749749 const toMultilineInput = value => value.split(/\r?\n/).map(line => line.trim()).filter(Boolean);
750750
751- const gitContextAttrs = GitHub.context.ref.startsWith('refs/tags/') ? {} : {'fetch-by-commit': 'true'};
751+ const gitContextAttrs = GitHub.context.ref.startsWith('refs/tags/') ? {checksum: GitHub.context.sha } : {'fetch-by-commit': 'true'};
752752 const buildContext = await new Build().gitContext({subdir: inpContext, attrs: gitContextAttrs});
753753 core.setOutput('context', buildContext);
754754
You can’t perform that action at this time.
0 commit comments