Skip to content

Commit d12e0e4

Browse files
committed
WIP
1 parent c70796f commit d12e0e4

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
up:
2+
- ruby:
3+
version: '3.1.2'

dist/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35984,13 +35984,14 @@ var __webpack_exports__ = {};
3598435984

3598535985

3598635986
function run() {
35987+
_actions_core__WEBPACK_IMPORTED_MODULE_2__.startGroup('Gettng the Ruby version')
3598735988
getRubyVersion('dev.yml')
35989+
_actions_core__WEBPACK_IMPORTED_MODULE_2__.endGroup()
35990+
3598835991
// setupDependencies()
3598935992
}
3599035993

3599135994
function getRubyVersion(path) {
35992-
_actions_core__WEBPACK_IMPORTED_MODULE_2__.info("=== Getting the Ruby version")
35993-
3599435995
let devYMLContent;
3599535996

3599635997
try {
@@ -36016,8 +36017,7 @@ function getRubyVersion(path) {
3601636017

3601736018
if (!rubyVersion) { return }
3601836019

36019-
console.log
36020-
36020+
_actions_core__WEBPACK_IMPORTED_MODULE_2__.info(`Ruby version ${rubyVersion} detected. Saving for later...`)
3602136021
fs__WEBPACK_IMPORTED_MODULE_0__.writeFileSync(process.env.GITHUB_OUTPUT, rubyVersion, err => {})
3602236022
}
3602336023

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ import YAML from 'yaml'
33
import core from '@actions/core'
44

55
export function run() {
6+
core.startGroup('Gettng the Ruby version')
67
getRubyVersion('dev.yml')
8+
core.endGroup()
9+
710
// setupDependencies()
811
}
912

1013
export function getRubyVersion(path) {
11-
core.info("=== Getting the Ruby version")
12-
1314
let devYMLContent;
1415

1516
try {
@@ -35,8 +36,7 @@ export function getRubyVersion(path) {
3536

3637
if (!rubyVersion) { return }
3738

38-
console.log
39-
39+
core.info(`Ruby version ${rubyVersion} detected. Saving for later...`)
4040
fs.writeFileSync(process.env.GITHUB_OUTPUT, rubyVersion, err => {})
4141
}
4242

0 commit comments

Comments
 (0)