{"id":21216886,"url":"https://github.com/lablnet/create-branch-from-tag","last_synced_at":"2025-07-10T11:33:00.650Z","repository":{"id":65160584,"uuid":"497481716","full_name":"lablnet/create-branch-from-tag","owner":"lablnet","description":"This action will create a new branch from a tag.","archived":false,"fork":false,"pushed_at":"2025-02-18T22:47:02.000Z","size":5807,"stargazers_count":6,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-14T15:44:48.806Z","etag":null,"topics":["action","automation","branch","free","open-source","release","tags"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/create-a-branch","language":"JavaScript","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/lablnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":"lablnet","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-05-29T03:38:03.000Z","updated_at":"2024-06-12T16:39:29.000Z","dependencies_parsed_at":"2024-05-01T09:51:59.104Z","dependency_job_id":"e5fbdd22-73dd-4cbb-a135-9117821ab555","html_url":"https://github.com/lablnet/create-branch-from-tag","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"4b5c2bcad24f43622f63434873eb0098d7133cac"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/lablnet/create-branch-from-tag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2Fcreate-branch-from-tag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2Fcreate-branch-from-tag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2Fcreate-branch-from-tag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2Fcreate-branch-from-tag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lablnet","download_url":"https://codeload.github.com/lablnet/create-branch-from-tag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lablnet%2Fcreate-branch-from-tag/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264573276,"owners_count":23630453,"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":["action","automation","branch","free","open-source","release","tags"],"created_at":"2024-11-20T21:56:08.259Z","updated_at":"2025-07-10T11:33:00.255Z","avatar_url":"https://github.com/lablnet.png","language":"JavaScript","funding_links":["https://patreon.com/lablnet"],"categories":[],"sub_categories":[],"readme":"# create-branch-from-tag\n\nThis action will create a new branch from a tag.\n\nThis GitHub Action (written in JavaScript) wraps the [GitHub Branches API](https://docs.github.com/en/rest/branches/).\n\n## Usage\n### Pre-requisites\nCreate a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#example-workflow---create-a-release) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).\n\n### Inputs\n- `tag_name`: The name of the tag for this release\n- `owner`: The name of the owner of the repo. Used to identify the owner of the repository.  Used when cutting releases for external repositories.  Default: Current owner\n- `repo`: The name of the repository. Used to identify the repository on which to release.  Used when cutting releases for external repositories. Default: Current repository\n- `description`:  custom prefix for creating the branch. Default: `release@`\n\n### Outputs\n- `branch_name`: The Branch Name\n- `branch_url`: The URL users can navigate to in order to view the branch.\n\n### Example workflow - create a release\nOn every `push` to a tag matching the pattern `v*`:\n\n```yaml\non:\n  push:\n    # Sequence of patterns matched against refs/tags\n    tags:\n      - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10\n\nname: Create Branch\n\njobs:\n  build:\n    permissions: # Read more at : https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs\n      contents: write\n    name: Create Branch\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4.1.4\n      - name: Create Branch\n        id: create_branch\n        uses: lablnet/create-branch-from-tag@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token\n        with:\n          tag_name: ${{ github.ref }}\n          owner: ${{ github.repository_owner }} # https://docs.github.com/en/actions/learn-github-actions/contexts#example-contents-of-the-github-context\n          repo: ${{ github.event.repository.name }} # https://www.reddit.com/r/github/comments/tjkj6f/get_repo_name_on_github_actions_without_owner/\n```\n\nThis will create a [Branch](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository#creating-a-branch), This uses the `GITHUB_TOKEN` provided by the [virtual environment](https://help.github.com/en/github/automating-your-workflow-with-github-actions/virtual-environments-for-github-actions#github_token-secret), so no new token is needed.\n\n## Contributing\nWe would love you to contribute to `@lablnet/create-branch-from-tag`, pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information.\n\n## License\nThe scripts and documentation in this project are released under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flablnet%2Fcreate-branch-from-tag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flablnet%2Fcreate-branch-from-tag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flablnet%2Fcreate-branch-from-tag/lists"}