{"id":15655394,"url":"https://github.com/borkdude/nbb-action-example","last_synced_at":"2025-05-04T08:32:10.702Z","repository":{"id":41081254,"uuid":"405678968","full_name":"borkdude/nbb-action-example","owner":"borkdude","description":"An example of writing a Github action with nbb","archived":false,"fork":false,"pushed_at":"2022-07-14T09:59:48.000Z","size":1871,"stargazers_count":25,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-30T21:33:19.142Z","etag":null,"topics":["clojurescript","github-actions","nbbjs","nodejs"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borkdude.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-12T15:28:23.000Z","updated_at":"2024-03-26T14:53:33.000Z","dependencies_parsed_at":"2022-07-13T09:20:33.940Z","dependency_job_id":null,"html_url":"https://github.com/borkdude/nbb-action-example","commit_stats":null,"previous_names":[],"tags_count":4,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borkdude%2Fnbb-action-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borkdude%2Fnbb-action-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borkdude%2Fnbb-action-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borkdude%2Fnbb-action-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borkdude","download_url":"https://codeload.github.com/borkdude/nbb-action-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252135869,"owners_count":21699987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojurescript","github-actions","nbbjs","nodejs"],"created_at":"2024-10-03T12:58:47.516Z","updated_at":"2025-05-03T02:56:11.501Z","avatar_url":"https://github.com/borkdude.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nbb-action-example\n\nThis is an example of how to use [nbb](https://github.com/borkdude/nbb), an\nad-hoc CLJS scripting tool for Node.js, to implement a Github action.\n\nThis action prints \"Hello World\" or \"Hello\" + the name of a person to greet to the log.\n\nIt was created using\n[this](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action)\ntutorial but instead of JavaScript it uses a small JS wrapper `index.mjs` + the\nactual CLJS script `action.cljs`.\n\n## Running locally\n\nRun:\n\n``` shell\nnpm run action\n```\n\nto run the action locally.\n\n## Bundle\n\nTo bundle `action.cljs` using `ncc`, run: `npm run bundle`.  This will create\nthe standalone JS file `dist/index.mjs`.\n\nSee [bundle](https://github.com/babashka/nbb/tree/main/doc/bundle) for more\ndetails.\n\n## Inputs\n\n## `who-to-greet`\n\n**Required** The name of the person to greet. Default `\"World\"`.\n\n## Outputs\n\n## `time`\n\nThe time we greeted you.\n\n## Example usage\n\n``` yaml\non: [push]\n\njobs:\n  hello_world_job:\n    runs-on: ubuntu-latest\n    name: A job to say hello\n    steps:\n      - name: Hello world action step\n        id: hello\n        uses: borkdude/nbb-action-example@v0.1.0\n        with:\n          who-to-greet: 'Mona the Octocat'\n      # Use the output from the `hello` step\n      - name: Get the output time\n        run: echo \"The time was ${{ steps.hello.outputs.time }}\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborkdude%2Fnbb-action-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborkdude%2Fnbb-action-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborkdude%2Fnbb-action-example/lists"}