Skip to content

Commit

Permalink
Rename actionName to ACTION_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael B. Gale committed Jun 13, 2023
1 parent aef016d commit ddb13a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions lib/resolve-environment-action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/resolve-environment-action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/resolve-environment-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
} from "./util";
import { validateWorkflow } from "./workflow";

const actionName = "resolve-environment";
const ACTION_NAME = "resolve-environment";

async function run() {
const startedAt = new Date();
Expand All @@ -46,7 +46,7 @@ async function run() {
if (
!(await sendStatusReport(
await createStatusReportBase(
actionName,
ACTION_NAME,
"starting",
startedAt,
workflowErrors
Expand Down Expand Up @@ -98,7 +98,7 @@ async function run() {
core.setFailed(error.message);
await sendStatusReport(
await createStatusReportBase(
actionName,
ACTION_NAME,
"aborted",
startedAt,
error.message,
Expand All @@ -113,7 +113,7 @@ async function runWrapper() {
try {
await run();
} catch (error) {
core.setFailed(`${actionName} action failed: ${wrapError(error).message}`);
core.setFailed(`${ACTION_NAME} action failed: ${wrapError(error).message}`);
}
await checkForTimeout();
}
Expand Down

0 comments on commit ddb13a1

Please sign in to comment.