Skip to content

Commit

Permalink
add export variable
Browse files Browse the repository at this point in the history
  • Loading branch information
acrossoffwest committed Feb 5, 2023
1 parent c26825e commit 42dccca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getInput, setFailed, debug, setOutput } from "@actions/core";
import {getInput, setFailed, debug, setOutput, exportVariable} from "@actions/core";
import { context, getOctokit } from "@actions/github";
import slugify from "@sindresorhus/slugify";
import { execSync } from "child_process";
Expand Down Expand Up @@ -66,6 +66,7 @@ export const run = async () => {
console.log(result);
console.log("Deployed", `https://${surgeDomain}`);
setOutput('SURGE_DOMAIN', surgeDomain);
exportVariable('SURGE_DOMAIN', surgeDomain);
if (addDeployment)
await octokit.repos.createDeploymentStatus({
owner: context.repo.owner,
Expand Down Expand Up @@ -124,6 +125,7 @@ export const run = async () => {
console.log(result);
console.log("Deployed", `https://${surgeDomain}`);
setOutput('SURGE_DOMAIN', surgeDomain);
exportVariable('SURGE_DOMAIN', surgeDomain);
if (addDeployment)
await octokit.repos.createDeploymentStatus({
owner: context.repo.owner,
Expand Down

0 comments on commit 42dccca

Please sign in to comment.