* chore(deps): bump dependecies * chore: add "inputs" script * chore: commit local work * chore: delete lib folder * chore: commit local work * BREAKING: edit action options - force has been deleted, pass the '-f' parameter to add and remove - ref is now called branch * [auto] build: update compiled version * chore: improve input checks * [auto] build: update compiled version * fix: pathspec errors should be catched differently * [auto] build: update compiled version * fix: check for 'add' and 'remove' before running commands * [auto] build: update compiled version * fix: log git commands * [auto] build: update compiled version * fix: improve logs' readability * [auto] build: update compiled version * chore: try not resetting files * [auto] build: update compiled version * fix: ignore errors on 2nd stage, log them on 1st * [auto] build: update compiled version * fix: signoff * [auto] build: update compiled version * fix: log git tag output * [auto] build: update compiled version * fix: use proper method for tagging * [auto] build: update compiled version * fix: use dedicated method for pushing tags * [auto] build: update compiled version * fix: using pure git tag command is better * [auto] build: update compiled version * fix: improve error handling * [auto] build: update compiled version * fix: I messed up the lines * [auto] build: update compiled version * fix: fix tags push when there's a forced update * [auto] build: update compiled version * fix: log errors too * chore: remove unused dependecy * [auto] build: update compiled version * fix: don't log when using ignoreErrors * [auto] build: update compiled version * fix: fetch tags * [auto] build: update compiled version * fix: try forcing tag fetch * [auto] build: update compiled version * fix: try using original command for pushing tags * [auto] build: update compiled version * fix: try removing repo from tag command * [auto] build: update compiled version * fix: try with object options * [auto] build: update compiled version * i don't even know anymore * [auto] build: update compiled version * fix: try deleting the tag when it's rejected * [auto] build: update compiled version * fix: isolate tag name * [auto] build: update compiled version * fix: log result of tag deletion * [auto] build: update compiled version * fix: use actual values instead of references * [auto] build: update compiled version * fix: join netrc path with module * [auto] build: update compiled version * fix-: try not using .netrc at all * [auto] build: update compiled version * fix: remove .netrc config * [auto] build: update compiled version * chore: remove old shell file * docs: update README * chore: fix typo in action manifest * chore: move ncc to dev-deps * fix: cwd not working properly * [auto] build: update compiled version
12 lines
377 B
TypeScript
12 lines
377 B
TypeScript
import YAML from 'yamljs'
|
|
import fs from 'fs'
|
|
|
|
const actionManifest = YAML.load('action.yml'),
|
|
inputs = Object.keys(actionManifest?.inputs || {})
|
|
|
|
fs.writeFileSync('src/inputs.ts', `
|
|
// WARNING: this file is auto-generated by scripts/inputs.ts (npm run inputs), any manual edit will be overwritten.
|
|
|
|
export type Input = ${inputs.map(s => `'${s}'`).join(' | ')}
|
|
`.trimLeft())
|