{"id":18036087,"url":"https://github.com/kjuly/tag-xyz","last_synced_at":"2025-04-04T23:26:10.280Z","repository":{"id":243952120,"uuid":"810861620","full_name":"Kjuly/tag-xyz","owner":"Kjuly","description":"Create a new tag (x.y.z) based on the last one, and dispatch a relevant workflow if needed.","archived":false,"fork":false,"pushed_at":"2024-06-12T01:01:40.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T08:13:11.043Z","etag":null,"topics":["bump","ci","github-action","increment","tag","version"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/Kjuly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2024-06-05T13:42:44.000Z","updated_at":"2024-06-12T01:01:21.000Z","dependencies_parsed_at":"2024-06-12T06:58:17.607Z","dependency_job_id":"d78cdff3-ecc4-45c7-9086-216e48a7d72a","html_url":"https://github.com/Kjuly/tag-xyz","commit_stats":null,"previous_names":["kjuly/tag-xyz"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Ftag-xyz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Ftag-xyz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Ftag-xyz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kjuly%2Ftag-xyz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kjuly","download_url":"https://codeload.github.com/Kjuly/tag-xyz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247264271,"owners_count":20910562,"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":["bump","ci","github-action","increment","tag","version"],"created_at":"2024-10-30T12:11:32.009Z","updated_at":"2025-04-04T23:26:10.263Z","avatar_url":"https://github.com/Kjuly.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tag XYZ\nCreate a new tag (x.y.z) based on the last one, and dispatch a relevant workflow if needed.\n\n## Usage\n\n```yaml\non:\n  workflow_dispatch:\n\n  schedule:\n    - cron: \"0 12 * * 2\"\n\n# See the \"Workflow Permissions\" section below for details.\npermissions:\n  contents: write\n  actions: write\n\njobs:\n  create-tag:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Create Tag for New Version\n        uses: kjuly/tag-xyz@main\n        with:\n          version_level: \"z\"\n          dispatch_workflow_id: \"a_tag_trigged_workflow.yml\"\n```\n\n## Optional Inputs\n\n| Input | Default | Description\n| :--- | :--- | :---\n| version_level | 'z' | The version level of 'x.y.z'.\n| dispatch_workflow_id | '' | ID of the workflow to dispatch, e.g., 'test_workflow.yml'.\n\n## Workflow Permissions\n\nPermissions setting is only needed if your repo has restricted permissions on the `GITHUB_TOKEN`.\n\nIn order to create a tag reference, we need the write permissions on `contents` \u0026 `actions`. Otherwise, we'll get a \"Resource not accessible by integration\" error when creating a tag ref using `github.rest.git.createRef` from `actions/github-script`.\n\nYou can confirm your repo's workflow permissions in\n\n\u003e Settings \u003e Code and automation \u003e Actions \u003e General \u003e Workflow permissions\n\nIt's \"Read repository contents and packages permissions\" by default. If it's \"Read and write permissions\", you can just remove the `permissions` setting in YAML file.\n\nFurther reading:  \n- [Modifying the permissions for the GITHUB_TOKEN](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token)\n- [Assigning permissions to jobs](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs)  \n- [Create a reference](https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28#create-a-reference)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjuly%2Ftag-xyz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjuly%2Ftag-xyz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjuly%2Ftag-xyz/lists"}