You've already forked dynamic-badges-action
Add save svg-badge directly to gist
This adds the posibility of saving an SVG badge generated by the same shields.io dirictly to the gist. Instead of prepering a JSON file to be sent to their service, we use their library directly, which outputs an SVG file that we can save to the user’s gist. Filenames ending in `.svg` will use this library automatically. Additionally there is a major refactoring where the older `node:http` library has been swapped out for `fetch`. Also swap from node 16 to node 20 fixes #24
This commit is contained in:
@@ -11,7 +11,7 @@ inputs:
|
||||
description: 'The ID of the gist to use'
|
||||
required: true
|
||||
filename:
|
||||
description: 'The *.json filename of the badge data'
|
||||
description: 'The *.json or *.svg filename of the badge data'
|
||||
required: true
|
||||
label:
|
||||
description: 'The left text of the badge'
|
||||
@@ -72,5 +72,5 @@ inputs:
|
||||
description: 'Lightness used by the color range feature. Defaults to 40.'
|
||||
required: false
|
||||
runs:
|
||||
using: 'node16'
|
||||
using: 'node20'
|
||||
main: 'index.js'
|
||||
|
||||
Reference in New Issue
Block a user