Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 82aa2fd

Browse files
committed
Updated project
1 parent 13c1d0a commit 82aa2fd

File tree

7 files changed

+18
-17
lines changed

7 files changed

+18
-17
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"project": "./tsconfig.json"
99
},
1010
"rules": {
11+
"no-console": "off",
1112
"i18n-text/no-en": "off",
1213
"eslint-comments/no-use": "off",
1314
"import/no-namespace": "off",

.github/workflows/test-action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- name: test1
1515
id: time1
16-
uses: seatcode/git-cli-actions-seatcode@v1.0
16+
uses: ./
1717

1818

1919
- name: test1-output
@@ -23,7 +23,7 @@ jobs:
2323
echo $TIME
2424
- name: test2
2525
id: time2
26-
uses: seatcode/git-cli-actions-seatcode@v1.0
26+
uses: ./
2727
with:
2828
timeZone: 8
2929
format: 'YYYY-MM-DD_HH:mm:ss'
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: test1
4545
id: cadena
46-
uses: seatcode/git-cli-actions-seatcode@v1.0
46+
uses: ./
4747
with:
4848
string: "A SIMPLE TEST TO lowercase"
4949

__tests__/main.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test('wait 500 ms', async () => {
1010

1111
// shows how the runner will run a javascript action with env / stdout protocol
1212
test('test runs', () => {
13-
process.env['INPUT_MILLISECONDS'] = '500'
13+
process.env['string'] = 'This is A TeSt'
1414
const np = process.execPath
1515
const ip = path.join(__dirname, '..', 'lib', 'main.js')
1616
const options: cp.ExecFileSyncOptions = {

dist/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/action/labels.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ const core = __importStar(require("@actions/core"));
3737
function labels() {
3838
return __awaiter(this, void 0, void 0, function* () {
3939
const inputStr = core.getInput('string');
40-
// console.log(`Manipulating string: ${inputStr}`)
40+
console.log(`Manipulating string: ${inputStr}`);
4141
const lowercase = inputStr.toLowerCase();
42-
//console.log(`lowercase: ${lowercase}`)
42+
console.log(`lowercase: ${lowercase}`);
4343
core.setOutput('lowercase', lowercase);
4444
const uppercase = inputStr.toUpperCase();
45-
//console.log(`uppercase: ${uppercase}`)
45+
console.log(`uppercase: ${uppercase}`);
4646
core.setOutput('uppercase', uppercase);
4747
const capitalized = inputStr.charAt(0).toUpperCase() + inputStr.slice(1).toLowerCase();
48-
//console.log(`capitalized: ${capitalized}`)
48+
console.log(`capitalized: ${capitalized}`);
4949
core.setOutput('capitalized', capitalized);
5050
});
5151
}

src/action/labels.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import * as core from '@actions/core'
22

33
export async function labels(): Promise<void> {
44
const inputStr = core.getInput('string')
5-
// console.log(`Manipulating string: ${inputStr}`)
5+
console.log(`Manipulating string: ${inputStr}`)
66

77
const lowercase = inputStr.toLowerCase()
8-
//console.log(`lowercase: ${lowercase}`)
8+
console.log(`lowercase: ${lowercase}`)
99
core.setOutput('lowercase', lowercase)
1010

1111
const uppercase = inputStr.toUpperCase()
12-
//console.log(`uppercase: ${uppercase}`)
12+
console.log(`uppercase: ${uppercase}`)
1313
core.setOutput('uppercase', uppercase)
1414

1515
const capitalized =
1616
inputStr.charAt(0).toUpperCase() + inputStr.slice(1).toLowerCase()
17-
//console.log(`capitalized: ${capitalized}`)
17+
console.log(`capitalized: ${capitalized}`)
1818
core.setOutput('capitalized', capitalized)
1919
}

0 commit comments

Comments
 (0)