{"id":16129482,"url":"https://github.com/klutchell/balena-versionist-action","last_synced_at":"2026-03-18T18:02:40.648Z","repository":{"id":172765760,"uuid":"620856116","full_name":"klutchell/balena-versionist-action","owner":"klutchell","description":"Automatic versioning of source files with balena-versionist","archived":false,"fork":false,"pushed_at":"2023-06-28T16:38:30.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-02T14:38:05.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/klutchell.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-03-29T14:02:25.000Z","updated_at":"2023-03-29T14:02:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4660047-3c00-47f4-8e18-681a61fd7559","html_url":"https://github.com/klutchell/balena-versionist-action","commit_stats":null,"previous_names":["klutchell/balena-versionist-action"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/klutchell/balena-versionist-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fbalena-versionist-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fbalena-versionist-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fbalena-versionist-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fbalena-versionist-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klutchell","download_url":"https://codeload.github.com/klutchell/balena-versionist-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klutchell%2Fbalena-versionist-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29906477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T17:28:36.873Z","status":"ssl_error","status_checked_at":"2026-02-27T17:28:20.970Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-09T22:10:58.877Z","updated_at":"2026-02-27T17:38:43.319Z","avatar_url":"https://github.com/klutchell.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# balena versionist GitHub action\n\nAutomatic versioning of source files with [balena-versionist](https://github.com/product-os/balena-versionist).\n\nUseful as a first step in continuous deployment workflows.\n\nThe following actions are taken sequentially:\n\n1. Run `balena-versionist`. This will update a number of files depending on the detected project type.\n2. Add a new commit to the working branch with the versioned changes.\n3. Create a release tag corresponding to the new version.\n4. Upload a compressed artifact of the versioned source.\n5. Push changes and tags to the default branch on merge.\n\nRead more about the opinionated versioning here:\n\n- [versionist](https://github.com/product-os/versionist)\n- [balena-versionist](https://github.com/product-os/balena-versionist)\n\n## Getting Started\n\n```yaml\nname: Versionist\non:\n  push:\n    branches: [\"master\", \"main\"]\n  pull_request:\n    branches: [\"master\", \"main\"]\n\n# https://docs.github.com/en/actions/using-jobs/using-concurrency\nconcurrency:\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: false\n\njobs:\n  versionist:\n    name: Run versionist\n    runs-on: ubuntu-latest\n\n    outputs:\n      version: ${{ steps.versionist.outputs.version }}\n      tag: ${{ steps.versionist.outputs.tag }}\n      artifact: ${{ steps.versionist.outputs.artifact }}\n\n    steps:\n      - name: Checkout project\n        uses: actions/checkout@v3\n        with:\n          token: ${{ secrets.ACCESS_TOKEN }}\n          fetch-depth: 0 # versionist needs all commits and tags\n\n      - name: Run balena-versionist\n        id: versionist\n        uses: klutchell/balena-versionist-action\n        with:\n          github_token: ${{ secrets.ACCESS_TOKEN }}\n          gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}\n          gpg_passphrase: ${{ secrets.GPG_PRIVATE_KEY }}\n\n  run_tests:\n    name: Run tests\n    needs: versionist\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Download versioned source\n        uses: actions/download-artifact@v3\n        with:\n          name: ${{ needs.versionist.outputs.artifact }}\n          path: ${{ runner.temp }}\n\n      - name: Extract versioned source\n        shell: pwsh\n        run: tar -xvf ${{ runner.temp }}/source.tgz\n\n      - name: Echo version and tag\n        run: |\n          echo \"Version is ${{ needs.versionist.outputs.version }}\"\n          echo \"Tag is ${{ needs.versionist.outputs.tag }}\"\n```\n\n## Usage\n\n### Inputs\n\n#### `github_token`\n\nPersonal access token (PAT) for the GitHub service account with admin/owner permissions.\n\n#### `gpg_private_key`\n\nGPG private key exported with `gpg --armor --export-secret-keys ...` to sign commits.\n\nSee [Managing commit signature verification](https://docs.github.com/en/authentication/managing-commit-signature-verification).\n\n#### `gpg_passphrase`\n\nPassphrase to decrypt GPG private key.\n\nSee [Managing commit signature verification](https://docs.github.com/en/authentication/managing-commit-signature-verification).\n\n#### `balena_versionist_version`\n\nUse a specific release of [balena-versionist](https://www.npmjs.com/package/balena-versionist).\n\n#### `versionist_version`\n\nUse a specific release of [versionist](https://www.npmjs.com/package/versionist).\n\n### Outputs\n\n#### `version`\n\nGenerated version.\n\nRead more about the opinionated versioning here:\n\n- [versionist](https://github.com/product-os/versionist)\n- [balena-versionist](https://github.com/product-os/balena-versionist)\n\n#### `tag`\n\nGenerated tag. Same as version but with a `v` prefix.\n\n#### `artifact`\n\nName of the uploaded versioned source artifact.\n\n#### `changed`\n\nEither `true` or `false` depending on whether any source files were updated by versionist.\n\n#### `error`\n\nError message from versionist, if any.\n\n## Contributing\n\nPlease open an issue or submit a pull request with any features, fixes, or changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklutchell%2Fbalena-versionist-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklutchell%2Fbalena-versionist-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklutchell%2Fbalena-versionist-action/lists"}