Skip to content

Commit 6a9a34c

Browse files
authored
Merge pull request #126 from sigprof/save-state-deprecated
Use `core.saveState` instead of raw `save-state` command
2 parents d035f0e + 3fea4e0 commit 6a9a34c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dist/main/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4287,7 +4287,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
42874287
Object.defineProperty(exports, "__esModule", ({ value: true }));
42884288
exports.IsPost = void 0;
42894289
const core = __importStar(__nccwpck_require__(186));
4290-
const coreCommand = __importStar(__nccwpck_require__(351));
42914290
const exec = __importStar(__nccwpck_require__(514));
42924291
const which_1 = __importDefault(__nccwpck_require__(207));
42934292
exports.IsPost = !!process.env['STATE_isPost'];
@@ -4364,7 +4363,7 @@ function upload() {
43644363
if (!exports.IsPost) {
43654364
// Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
43664365
// This is necessary since we don't have a separate entry point.
4367-
coreCommand.issueCommand('save-state', { name: 'isPost' }, 'true');
4366+
core.saveState('isPost', 'true');
43684367
setup();
43694368
}
43704369
else {

src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as core from '@actions/core';
2-
import * as coreCommand from '@actions/core/lib/command'
32
import * as exec from '@actions/exec';
43
import which from 'which';
54

@@ -79,7 +78,7 @@ async function upload() {
7978
if (!IsPost) {
8079
// Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
8180
// This is necessary since we don't have a separate entry point.
82-
coreCommand.issueCommand('save-state', {name: 'isPost'}, 'true')
81+
core.saveState('isPost', 'true');
8382
setup()
8483
} else {
8584
// Post

0 commit comments

Comments
 (0)