@action-badges/core
Advanced tools
Comparing version 0.3.0 to 0.3.1
# Changelog | ||
## 📦 0.3.1 | ||
- Error handling improvements | ||
## 📦 0.3.0 | ||
@@ -4,0 +8,0 @@ |
@@ -19,3 +19,3 @@ # `action-badges/core` Github Action | ||
- name: Make Black Code Style badge | ||
uses: action-badges/core@0.3.0 | ||
uses: action-badges/core@0.3.1 | ||
with: | ||
@@ -31,3 +31,3 @@ label: code style | ||
- name: Make Latest Commit badge | ||
uses: action-badges/core@0.3.0 | ||
uses: action-badges/core@0.3.1 | ||
with: | ||
@@ -83,3 +83,3 @@ label: latest commit | ||
- uses: actions/checkout@v3 | ||
- uses: action-badges/create-orphan-branch@0.1.0 | ||
- uses: action-badges/create-orphan-branch@0.1.1 | ||
with: | ||
@@ -89,3 +89,3 @@ branch-name: badges | ||
- name: Make Open Issues badge | ||
uses: action-badges/core@0.3.0 | ||
uses: action-badges/core@0.3.1 | ||
with: | ||
@@ -92,0 +92,0 @@ label: open issues |
{ | ||
"name": "@action-badges/core", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Create SVG badges with GitHub actions", | ||
@@ -33,3 +33,3 @@ "main": "src/index.js", | ||
"@vercel/ncc": "^0.38.1", | ||
"c8": "^8.0.1", | ||
"c8": "^9.0.0", | ||
"eslint": "^8.0.0", | ||
@@ -36,0 +36,0 @@ "eslint-config-prettier": "^9.0.0", |
@@ -64,9 +64,16 @@ import core from "@actions/core"; | ||
if (!(Cls.prototype instanceof BaseAction)) { | ||
throw new Error("Action class must extend BaseAction"); | ||
} | ||
let obj; | ||
let rendered; | ||
try { | ||
if (!(Cls.prototype instanceof BaseAction)) { | ||
throw new Error("Action class must extend BaseAction"); | ||
} | ||
const obj = new Cls(); | ||
const rendered = await obj.render(); | ||
if (rendered == null) { | ||
obj = new Cls(); | ||
rendered = await obj.render(); | ||
if (rendered == null) { | ||
return; | ||
} | ||
} catch (e) { | ||
core.setFailed(e.message); | ||
return; | ||
@@ -73,0 +80,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21103
190