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:
parent
44d81d6d2a
commit
526d40319b
9 changed files with 246 additions and 27 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue