Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
Deprecation of action
Browse files Browse the repository at this point in the history
Deprecation of actions/setup-ruby
  • Loading branch information
AlenaSviridenko authored Feb 9, 2021
2 parents 5f29a1c + 628c631 commit e932e7a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
version: [2.4, 2.5.x, 2.6, 2.7.x]
version: [2.5.x, 2.6, 2.7.x]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<a href="https://github.com/actions/setup-ruby/actions"><img alt="versions status" src="https://github.com/actions/setup-ruby/workflows/ruby-versions/badge.svg"></a>
</p>

**Please note: This action is deprecated and should no longer be used. The team at GitHub has ceased making and accepting code contributions or maintaining issues tracker. Please, migrate your workflows to the [ruby/setup-ruby](https://github.com/ruby/setup-ruby), which is being actively maintained by the official Ruby organization.**


This action sets up a ruby environment for versions which are installed on the [Actions Virtual Environments](https://github.com/actions/virtual-environments).

Virtual environments contain only one Ruby version within a 'major.minor' release, and are updated with new releases. Hence, a workflow should only be bound to minor versions.
Expand Down
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,10 @@ const cache = __importStar(__webpack_require__(365));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
core.info('------------------------');
core.info('NOTE: This action is deprecated and is no longer maintained.');
core.info('Please, migrate to https://github.com/ruby/setup-ruby, which is being actively maintained.');
core.info('------------------------');
let versionSpec = core.getInput('ruby-version', { required: true });
if (!versionSpec) {
// deprecated
Expand Down
7 changes: 7 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import * as cache from './cache';

export async function run() {
try {
core.info('------------------------');
core.info('NOTE: This action is deprecated and is no longer maintained.');
core.info(
'Please, migrate to https://github.com/ruby/setup-ruby, which is being actively maintained.'
);
core.info('------------------------');

let versionSpec = core.getInput('ruby-version', {required: true});
if (!versionSpec) {
// deprecated
Expand Down

0 comments on commit e932e7a

Please sign in to comment.