{"id":21041130,"url":"https://github.com/shymega/headscale-gh-action","last_synced_at":"2025-04-28T18:15:17.055Z","repository":{"id":255094776,"uuid":"848532561","full_name":"shymega/headscale-gh-action","owner":"shymega","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-21T16:17:45.000Z","size":877,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T18:15:12.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shymega.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T23:58:28.000Z","updated_at":"2025-04-21T16:17:49.000Z","dependencies_parsed_at":"2024-08-28T00:45:25.800Z","dependency_job_id":"bd71c095-2435-4d2c-8e4b-9fea65ccba7d","html_url":"https://github.com/shymega/headscale-gh-action","commit_stats":null,"previous_names":["shymega/headscale-gh-action"],"tags_count":3,"template":false,"template_full_name":"actions/javascript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shymega%2Fheadscale-gh-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shymega%2Fheadscale-gh-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shymega%2Fheadscale-gh-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shymega%2Fheadscale-gh-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shymega","download_url":"https://codeload.github.com/shymega/headscale-gh-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251362153,"owners_count":21577404,"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":[],"created_at":"2024-11-19T13:50:40.661Z","updated_at":"2025-04-28T18:15:17.039Z","avatar_url":"https://github.com/shymega.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create a JavaScript Action\n\u003e An opinionated alternative template to [`actions/javascript-action`](https://github.com/actions/javascript-action) to bootstrap the creation of a JavaScript action. 🚀\n\n\u003ca href=\"https://github.com/github-developer/javascript-action/actions\"\u003e\u003cimg alt=\"javscript-action status\" src=\"https://github.com/github-developer/javascript-action/actions/workflows/test.yml/badge.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://img.shields.io/github/v/release/github-developer/javascript-action\"\u003e\u003cimg alt=\"release\" src=\"https://img.shields.io/github/v/release/github-developer/javascript-action\"\u003e\u003c/a\u003e\n\u003ca href=\"https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg\"\u003e\u003cimg alt=\"Contributor Covenant\" src=\"https://img.shields.io/badge/Contributor%20Covenant-2.0-4baaaa.svg\"\u003e\u003c/a\u003e\n\nUse this template to bootstrap the creation of a JavaScript action. :rocket: Alternative to [`actions/javascript-action`](https://github.com/actions/javascript-action).\n\nThis template includes [release automation](.github/workflows), [tests](tests), linting, publishing, starter docs, and versioning guidance.\n\n## Usage\n\nReference the published [semantic tag](https://semver.org/), e.g. major:\n\n```yaml\nuses: github-developer/javascript-action@v1\nwith:\n  milliseconds: 1000\n```\n\nor minor:\n\n```yaml\nuses: github-developer/javascript-action@v1.0\nwith:\n  milliseconds: 1000\n```\n\nor patch:\n\n```yaml\nuses: github-developer/javascript-action@v1.0.0\nwith:\n  milliseconds: 1000\n```\n\nSee the [actions tab](https://github.com/github-developer/javascript-action/actions) for runs of this action! :rocket:\n\n## Development\n\n#### 1. Update your action metadata in `action.yml`\n\n[`action.yml`](action.yml) defines the inputs and output for your action.\n\nUpdate the action.yml with your name, description, inputs and outputs for your action.\n\nSee the [documentation](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions).\n\n#### 2. Write your action code in `lib`\n\nMost toolkit and CI/CD operations involve async operations so the action is run in an async function.\n\n```javascript\nconst core = require('@actions/core');\n...\n\nasync function run() {\n  try {\n      ...\n  }\n  catch (error) {\n    core.setFailed(error.message);\n  }\n}\n\nrun()\n```\n\nSee the [toolkit documentation](https://github.com/actions/toolkit/blob/master/README.md#packages) for the various packages.\n\n#### 3. Test your action in `tests`\n\n[Jest](https://jestjs.io/) and [Nock](https://github.com/nock/nock) are included as suggestions for test and mocking frameworks.\n\nA sample [Unit Test workflow](.github/workflows/test.yml) is provided which runs on every pull request and push to the `main` branch.\n\n#### 4. Automate releases with GitHub Actions\n\nThe entrypoint to your action is defined by `runs.using` in `action.yml`.\n\nThis project uses a `prepare` script leveraging `@vercel/ncc` to compile and package the code into one minified `dist/index.js` file, enabling fast and reliable execution and preventing the need to check in the whole dependency tree in `node_modules`.\n\nHere, `dist` is intentionally _not_ committed to Git branches for three reasons:\n1. Encourage users to reference your action using [semantically versioned](https://semver.org/) tags like `v1`, `v1.1.5`, etc. instead of branches ([docs](https://docs.github.com/en/actions/creating-actions/about-actions#using-tags-for-release-management)). \n2. Avoid a security vulnerability attack vector by encouraging community contributions to source code only, ignoring proposed compiled release assets.\n3. Let automation do the hard part 🤖.\n\nA sample [Publish workflow](.github/workflows/publish.yml) is provided which runs on a `release` event to compile and package source code into `dist`, and force push major and minor tag versions according to the semantic version of the release. You can kick off this workflow and publish to GitHub Marketplace simply by [using the GitHub UI](https://docs.github.com/en/actions/creating-actions/publishing-actions-in-github-marketplace#publishing-an-action) to create a new semantically versioned release like `v1.0.3`.\n\n#### 🔁 Commit to open source maintainership\n\nA healthy open source community starts with communication. Either in this repository or in your organization's `.github` repository, we recommend reviewing, editing, and adopting:\n- `CODE_OF_CONDUCT.md` for how to engage in community\n- `CONTRIBUTING.md` for how to contribute to this project\n- `LICENSE.md` for how to legally use and contribute to the project\n- `SECURITY.md` for responsibly disclosing vulnerabilities\n- [Issue and pull request templates](https://docs.github.com/en/github/building-a-strong-community/about-issue-and-pull-request-templates)\n\nIssues and pull requests from the open source community should be attended to in a prompt, friendly, and proactive manner. Two sample workflows, [stale](.github/workflows/stale.yml) and [labeler](.github/workflows/labeler.yml) are provided to help with two small repetitious tasks. \n\nSee [Open Source Guides](https://opensource.guide/best-practices/) for more guidance on maintaining a strong community.\n\n## License\n\n[MIT](LICENSE.md)\n\n## Contributing\n\nPull requests are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for more.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshymega%2Fheadscale-gh-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshymega%2Fheadscale-gh-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshymega%2Fheadscale-gh-action/lists"}