This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const fs=require('fs'); | |
| const YAML = require('yaml') | |
| input=YAML.parseAllDocuments(fs.readFileSync('/dev/stdin').toString(),{}).map((item)=>item.toJS()); | |
| for (const obj of input) { | |
| kind=obj.kind; | |
| delete obj.kind; | |
| delete obj.apiVersion; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| api-info: | |
| version: <ANY STRING> | |
| title: <ANY STRING> | |
| description: <ANY MARKDOWN TEXT> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -v /mybox/myfiles:/internal ghcr.io/srfrnk/crd-api-doc-gen:latest /internal/some/path /internal/another/path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const core = require("@actions/core"); | |
| var moment = require('moment'); | |
| function action() { | |
| try { | |
| const time = new Date().toISOString(); | |
| core.setOutput("time", time); | |
| const format = core.getInput('format', { required: false }); | |
| core.setOutput("formattedTime", moment().format(format)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Current Time 2" | |
| author: "Gerred Dillon <[email protected]>, Shahar Frank<[email protected]>" | |
| description: "Get the current time with format" | |
| branding: | |
| icon: clock | |
| color: blue | |
| inputs: | |
| format: | |
| description: "Time format to use using [MomemtJS syntax](https://momentjs.com/)" | |
| default: "<None>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker-push: | |
| docker tag ks:$(GIT_TAG) docker.pkg.github.com/$(REPOSITORY)/ks:$(GIT_TAG) | |
| docker push docker.pkg.github.com/$(REPOSITORY)/ks:$(GIT_TAG) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if v.EnvRef.Name != "" { | |
| value := os.Getenv(v.EnvRef.Name) | |
| return value, nil | |
| } |
NewerOlder