https://github.com/andrew/ruby-upgrade-action
GitHub action to upgrade version of Ruby in various places to the latest
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Repository
GitHub action to upgrade version of Ruby in various places to the latest
Basic Info
- Host: GitHub
- Owner: andrew
- License: mit
- Default Branch: main
- Size: 26.4 KB
Statistics
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 1
Metadata Files
README.md
Ruby Upgrade Action
Ruby Upgrade Action is a GitHub Action that automatically upgrades the Ruby version in your repository. It updates the Ruby version in .ruby-version, .tool-versions, Gemfile, Gemfile.lock and Dockerfile. This action can be easily reused across multiple projects, simplifying the process of keeping Ruby dependencies up to date.
Features
- Automatically detects the latest stable Ruby version.
- Updates Ruby version in:
.ruby-versionGemfile(if the Ruby version is specified)Dockerfile(if usingruby:*base image)
- Runs tests after upgrading Ruby to ensure compatibility.
- Creates a pull request with the changes.
Prerequisites
This action requires:
- A repository using Ruby with a
.ruby-versionor.tool-versions,Gemfile, and optionally aDockerfile. - GitHub token (automatically provided by GitHub Actions as
GITHUB_TOKEN). - Repository setting: "Allow GitHub Actions to create and approve pull requests" must be enabled in Settings → Actions → General → Workflow permissions.
Usage
Add the following workflow to your repository to use this action:
```yaml
.github/workflows/upgrade-ruby.yml
name: Upgrade Ruby
on: workflow_dispatch: schedule: - cron: "0 0 * * 0" # Runs weekly
permissions: contents: write pull-requests: write
jobs: upgrade-ruby: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: andrew/ruby-upgrade-action@main with: github-token: ${{ secrets.GITHUB_TOKEN }} ```
This workflow runs weekly and can also be triggered manually. You can customize the schedule by modifying the cron expression.
Example
This action will:
- Fetch the latest Ruby version from the Ruby website.
- Update .ruby-version, Gemfile, Dockerfile, and GitHub Actions YAML files.
- Run bundle install and execute the test suite.
- Commit the changes and open a pull request.
Customization
If your repository has a different structure or additional files that specify the Ruby version, you can modify the update_files.sh script in your fork of this action.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.
Owner
- Name: Andrew Nesbitt
- Login: andrew
- Kind: user
- Location: Bristol, UK
- Company: @ecosyste-ms and @octobox
- Website: https://nesbitt.io
- Twitter: teabass
- Repositories: 357
- Profile: https://github.com/andrew
Working on mapping the world of open source software @ecosyste-ms and empowering developers with @octobox
GitHub Events
Total
- Release event: 1
- Watch event: 3
- Delete event: 27
- Issue comment event: 1
- Push event: 41
- Pull request event: 3
- Create event: 32
Last Year
- Release event: 1
- Watch event: 3
- Delete event: 27
- Issue comment event: 1
- Push event: 41
- Pull request event: 3
- Create event: 32
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Andrew Nesbitt | a****z@g****m | 48 |
| github-actions[bot] | g****]@u****m | 3 |
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- github-actions[bot] (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- andrew/ruby-upgrade-action main composite
- actions/checkout v3 composite
- peter-evans/create-pull-request v5 composite
- ruby/setup-ruby v1 composite