{"id":20799897,"url":"https://github.com/action-pack/increment","last_synced_at":"2025-05-06T23:46:40.286Z","repository":{"id":163740512,"uuid":"636198445","full_name":"action-pack/increment","owner":"action-pack","description":"Action to increment a repository variable.","archived":false,"fork":false,"pushed_at":"2025-05-06T13:09:02.000Z","size":913,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-06T14:31:52.388Z","etag":null,"topics":["github","github-action","github-actions","increment","variable"],"latest_commit_sha":null,"homepage":"","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/action-pack.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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,"zenodo":null}},"created_at":"2023-05-04T10:21:39.000Z","updated_at":"2025-04-14T19:52:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"43e4c95b-c938-45a5-b97f-7cd11963d61a","html_url":"https://github.com/action-pack/increment","commit_stats":{"total_commits":484,"total_committers":8,"mean_commits":60.5,"dds":0.1797520661157025,"last_synced_commit":"156229744a8789b2b6b494aa5e3ed923a1b4835b"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/action-pack%2Fincrement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/action-pack%2Fincrement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/action-pack%2Fincrement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/action-pack%2Fincrement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/action-pack","download_url":"https://codeload.github.com/action-pack/increment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252704048,"owners_count":21791001,"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":["github","github-action","github-actions","increment","variable"],"created_at":"2024-11-17T18:11:19.130Z","updated_at":"2025-05-06T23:46:40.280Z","avatar_url":"https://github.com/action-pack.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003eIncrement Variable\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \n  [![Build](https://github.com/action-pack/increment/actions/workflows/build.yml/badge.svg)](https://github.com/action-pack/increment/)\n  [![Version](https://img.shields.io/github/v/tag/action-pack/increment?label=version\u0026sort=semver\u0026color=066da5)](https://github.com/marketplace/actions/increment-variable)\n  [![Size](https://img.shields.io/github/size/action-pack/increment/dist/index.js?branch=release/v2.13\u0026label=size\u0026color=066da5)](https://github.com/action-pack/increment/)\n  \n\u003c/div\u003e\u003c/h1\u003e\n\nAction to increment a repository variable. Useful for increasing a version number for example.\n\n## Features ✨\n\n  - Automaticly creates the target variable if it does not exist\n  - Supports alphanumeric variables, for example `ABC1` will be increased to `ABC2`\n  - An `amount` parameter for if you want to increment by a custom amount\n\n## Usage 🚀\n\n```YAML\nuses: action-pack/increment@v2\nid: increment\nwith:\n  name: 'MY_VARIABLE'\n  token: ${{ secrets.REPO_ACCESS_TOKEN }}\n```\n\n## Inputs 📝\n\n### name\n\n**Required** `String` Variable name.\n\n### amount\n\n**Optional** `Integer` Increment by this amount (default = 1).\n\n### token\n\n**Required** `String` Repository [Access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)\n\n### owner\n\n**Optional** `String` Owners name.\n\n### repository\n\n**Optional** `String` Repository name.\n\n### org\n\n**Optional** `Boolean` Indicates the repo is an [organization](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-organizations).\n\n## FAQ 💬\n\n  * ### How do I read the value after incrementing?\n\n    If you need to get the value after the increment, use: `${{ steps.increment.outputs.value }}`\n\n  * ### Why do I get the error '*Resource not accessible by integration*'?\n\n    This will happen if you use ```secrets.GITHUB_TOKEN```.\n\n    You need to create a [personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) instead.\n\n    Go to your Github settings, select 'Developer settings' --\u003e 'Personal access tokens' --\u003e 'Tokens (classic)' and create a new token. Store its value in a secret, for example ```MY_TOKEN```.\n\n    Then refer to it like this:\n    \n    ```yaml\n    token: ${{ secrets.MY_TOKEN }}\n    ```\n\n## Stars 🌟\n[![Stars](https://starchart.cc/action-pack/increment.svg?variant=adaptive)](https://starchart.cc/action-pack/increment)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faction-pack%2Fincrement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faction-pack%2Fincrement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faction-pack%2Fincrement/lists"}