Skip to content

Commit ddb13a1

Browse files
committed
Rename actionName to ACTION_NAME
1 parent aef016d commit ddb13a1

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/resolve-environment-action.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.

lib/resolve-environment-action.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.

src/resolve-environment-action.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
} from "./util";
2323
import { validateWorkflow } from "./workflow";
2424

25-
const actionName = "resolve-environment";
25+
const ACTION_NAME = "resolve-environment";
2626

2727
async function run() {
2828
const startedAt = new Date();
@@ -46,7 +46,7 @@ async function run() {
4646
if (
4747
!(await sendStatusReport(
4848
await createStatusReportBase(
49-
actionName,
49+
ACTION_NAME,
5050
"starting",
5151
startedAt,
5252
workflowErrors
@@ -98,7 +98,7 @@ async function run() {
9898
core.setFailed(error.message);
9999
await sendStatusReport(
100100
await createStatusReportBase(
101-
actionName,
101+
ACTION_NAME,
102102
"aborted",
103103
startedAt,
104104
error.message,
@@ -113,7 +113,7 @@ async function runWrapper() {
113113
try {
114114
await run();
115115
} catch (error) {
116-
core.setFailed(`${actionName} action failed: ${wrapError(error).message}`);
116+
core.setFailed(`${ACTION_NAME} action failed: ${wrapError(error).message}`);
117117
}
118118
await checkForTimeout();
119119
}

0 commit comments

Comments
 (0)