2
0
Fork 0
mirror of https://code.forgejo.org/docker/metadata-action.git synced 2025-08-20 13:00:53 +00:00

feat: add variable commit_date

Signed-off-by: Trim21 <trim21.me@gmail.com>
This commit is contained in:
Trim21 2024-11-13 23:39:24 +08:00
parent 44d81d6d2a
commit 526d40319b
No known key found for this signature in database
GPG key ID: 809F01CFB0A797FB
9 changed files with 246 additions and 27 deletions

View file

@ -11,7 +11,7 @@ actionsToolkit.run(
async () => {
const inputs: Inputs = getInputs();
const toolkit = new Toolkit({githubToken: inputs.githubToken});
const context = await getContext(inputs.context);
const context = await getContext(inputs.context, toolkit);
const repo = await toolkit.github.repoData();
await core.group(`Context info`, async () => {
@ -23,6 +23,7 @@ actionsToolkit.run(
core.info(`actor: ${context.actor}`);
core.info(`runNumber: ${context.runNumber}`);
core.info(`runId: ${context.runId}`);
core.info(`commitDate: ${context.commitDate}`);
});
if (core.isDebug()) {