github-pages-deploy-action
Advanced tools
Comparing version 3.4.10 to 3.5.1
@@ -6,3 +6,3 @@ // Initial env variable setup for tests. | ||
import {mkdirP, rmRF} from '@actions/io' | ||
import {action} from '../src/constants' | ||
import {action, Status} from '../src/constants' | ||
import {execute} from '../src/execute' | ||
@@ -342,3 +342,3 @@ import {deploy, generateBranch, init, switchToBaseBranch} from '../src/git' | ||
await deploy(action) | ||
const response = await deploy(action) | ||
@@ -348,2 +348,3 @@ // Includes the call to generateBranch | ||
expect(rmRF).toBeCalledTimes(1) | ||
expect(response).toBe(Status.SUCCESS) | ||
}) | ||
@@ -443,5 +444,6 @@ | ||
await deploy(action) | ||
const response = await deploy(action) | ||
expect(execute).toBeCalledTimes(12) | ||
expect(rmRF).toBeCalledTimes(1) | ||
expect(response).toBe(Status.SKIPPED) | ||
}) | ||
@@ -448,0 +450,0 @@ |
@@ -41,3 +41,2 @@ "use strict"; | ||
finally { | ||
console.log(status); | ||
core_1.info(`${status === constants_1.Status.FAILED | ||
@@ -44,0 +43,0 @@ ? 'Deployment Failed β' |
@@ -5,3 +5,3 @@ { | ||
"author": "James Ives <iam@jamesiv.es> (https://jamesiv.es)", | ||
"version": "3.4.10", | ||
"version": "3.5.1", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "main": "lib/lib.js", |
@@ -156,3 +156,3 @@ <p align="center"> | ||
The action will export an environment variable called `DEPLOYMENT_STATUS` that you can use in your workflow to determine if the deployment was successful or not. You can find an explanation of each status code below. | ||
The action will export an environment variable called `DEPLOYMENT_STATUS` that you can use in your workflow to determine if the deployment was successful or not. You can find an explanation of each status type below. | ||
@@ -159,0 +159,0 @@ | Status | Description | |
@@ -33,3 +33,2 @@ import {exportVariable, info, setFailed} from '@actions/core' | ||
} finally { | ||
console.log(status) | ||
info( | ||
@@ -36,0 +35,0 @@ `${ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
1513089
0