Skip to content

Commit

Permalink
chore: add a new parameter because it seems like things are cached
Browse files Browse the repository at this point in the history
  • Loading branch information
jburns24 committed Dec 11, 2024
1 parent c575b2d commit 1b3eab9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ inputs:
description: Log the changed resources in action output
required: false
default: "true"
custom-message:
description: Logging a custom message (busting action cache)
required: false
default: "Can I please get this?"
runs:
using: node20
main: dist/index.js
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const quietMode = core.getBooleanInput("quiet");
const includeLinkToWorkflow = core.getBooleanInput("include-workflow-link");
const hidePreviousComments = core.getBooleanInput("hide-previous-comments");
const logChangedResources = core.getBooleanInput("log-changed-resources");
const customMessage = core.getMultilineInput("custom-message");

const workflowLink = includeLinkToWorkflow
? `
Expand Down Expand Up @@ -233,6 +234,7 @@ try {
let createComment = true;

console.log("hidePreviousComments:", hidePreviousComments);
core.info(`Custom message: ${customMessage}`);
console.log("Comment header used:", commentHeader);
console.log(
"hidePreviousComments && context.eventName === pull_request",
Expand Down

0 comments on commit 1b3eab9

Please sign in to comment.