{"id":16058794,"url":"https://github.com/ryancyq/bundle-release-gem","last_synced_at":"2025-04-05T08:16:05.507Z","repository":{"id":248263300,"uuid":"828211679","full_name":"ryancyq/bundle-release-gem","owner":"ryancyq","description":"release ruby gem using bundler","archived":false,"fork":false,"pushed_at":"2024-07-16T15:58:22.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"v1","last_synced_at":"2025-02-10T15:50:47.735Z","etag":null,"topics":["cicd","github-action","github-actions","release-automation","ruby","rubygem","rubygems"],"latest_commit_sha":null,"homepage":"","language":null,"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/ryancyq.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-07-13T12:55:40.000Z","updated_at":"2024-08-07T10:26:42.000Z","dependencies_parsed_at":"2024-10-09T03:40:44.304Z","dependency_job_id":null,"html_url":"https://github.com/ryancyq/bundle-release-gem","commit_stats":null,"previous_names":["ryancyq/bundle-release-gem"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Fbundle-release-gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Fbundle-release-gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Fbundle-release-gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryancyq%2Fbundle-release-gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryancyq","download_url":"https://codeload.github.com/ryancyq/bundle-release-gem/tar.gz/refs/heads/v1","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305946,"owners_count":20917208,"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":["cicd","github-action","github-actions","release-automation","ruby","rubygem","rubygems"],"created_at":"2024-10-09T03:40:39.408Z","updated_at":"2025-04-05T08:16:05.480Z","avatar_url":"https://github.com/ryancyq.png","language":null,"readme":"# Bundle and Release Gem GitHub Action\n\nThis action allows you to release ruby gem via [rubygems/release-gem] with an out of date branch.\n\n## Scenario\n\nGiven the scenario in the continous integration environment, you may want to release a new version of the gem after passing the test suite.\n\nThe following events occurred in sequence:\n1. git commit triggers release workflow.\n2. workflow runs test suite + releas gem action.\n3. another git commit pushed to the same remote branch.\n4. release gem action from point 2 executed.\n5. failed to due `git push` release tag together with `git push` current HEAD to remote.\n\nCurrently, [rubygems/release-gem@v1] is unable to support the scenario above as described in the [bundler issue] and [rubygem release action issue].\n\n## Workaround\n\nTo workaround the limitation, this action will create temporary branch (`releases/vX.X.X`) in the remote.\nThen trigger [rubygems/release-gem] to allow `rake release` to push release tag and current HEAD to remote.\nTemporary branch will be deleted from remote as part of the cleanup step in the action.\n\n## Usage\n\n```yaml\n# .github/workflows/release.yml\njobs:\n  rubygems:\n    runs-on: ubuntu-latest\n\n    permissions:\n      id-token: write # mandatory for trusted publishing\n      contents: write # mandatory for pushing the release branch/tag on git\n\n    steps:\n      - uses: actions/checkout@v4\n      - uses: ruby/setup-ruby@v1\n        with:\n          bundler-cache: true\n          ruby-version: ruby\n\n      - uses: ryancyq/bundle-release-gem@v1\n        with:\n          git-remote: \"origin\"                  # default to \"origin\"\n          git-release-branch-prefix: \"releases\" # default to \"releases\"\n          release-await: false                  # default to false, rubygems/release-gem \"await-release\" option\n          release-trusted: true                 # default to true, rubygems/release-gem \"setup-trusted-publisher\" option\n```\n\n### Compatabality with [rubygems/release-gem]\n\n- All inputs in [rubygems/release-gem] are supported:\n  - `await-release`\n  - `setup-trusted-publisher`\n- `git-remote` will not be propagated to [rubygems/release-gem] as it is not supported.\n\n[rubygems/release-gem]: https://github.com/rubygems/release-gem/\n[rubygems/release-gem@v1]: https://github.com/rubygems/release-gem/tree/v1\n[bundler issue]: https://github.com/rubygems/rubygems/issues/7818\n[rubygem release action issue]: https://github.com/rubygems/release-gem/issues/8\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancyq%2Fbundle-release-gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryancyq%2Fbundle-release-gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryancyq%2Fbundle-release-gem/lists"}