fix: Make tests use action locally 🐛
Some checks failed
Build Badges / Create Answer Badge (push) Failing after 2s
Build Badges / Create Color Range Badges (0) (push) Failing after 2s
Build Badges / Create Color Range Badges (10) (push) Failing after 2s
Build Badges / Create Color Range Badges (100) (push) Failing after 2s
Build Badges / Create Color Range Badges (20) (push) Failing after 2s
Build Badges / Create Color Range Badges (30) (push) Failing after 2s
Build Badges / Create Color Range Badges (40) (push) Failing after 2s
Build Badges / Create Color Range Badges (50) (push) Failing after 2s
Build Badges / Create Color Range Badges (60) (push) Failing after 2s
Build Badges / Create Color Range Badges (70) (push) Failing after 2s
Build Badges / Create Color Range Badges (80) (push) Failing after 2s
Build Badges / Create Color Range Badges (90) (push) Failing after 2s
Checks / Check REUSE (push) Successful in 6s

This commit is contained in:
2024-07-31 11:59:13 +12:00
parent b348384cf9
commit 33748372a2
2 changed files with 7 additions and 35 deletions

View File

@@ -58,16 +58,11 @@ try {
// and message attributes are always required. All others are optional and added to the
// content object only if they are given to the action.
let data = {
schemaVersion: 1,
label: core.getInput("label"),
message: core.getInput("message"),
};
const filename = core.getInput("filename");
const isSvgFile = filename.endsWith(".svg");
if (!isSvgFile) {
data.schemaVersion = 1;
}
// Compute the message color based on the given inputs.
const color = core.getInput("color");