mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-03 17:44:07 +02:00
Use core.saveState instead of raw 'save-state' command
The 'save-state' and 'set-output' commands are deprecated since 2022-10-11 and cause warnings when used in workflows: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ The saveState function from @actions/core >= 1.10.0 uses the new way to pass data to the post actions ($GITHUB_STATE); use that function instead of sending the deprecated 'save-state' command directly.
This commit is contained in:
parent
d035f0e386
commit
3fea4e0b70
2 changed files with 2 additions and 4 deletions
|
|
@ -1,5 +1,4 @@
|
|||
import * as core from '@actions/core';
|
||||
import * as coreCommand from '@actions/core/lib/command'
|
||||
import * as exec from '@actions/exec';
|
||||
import which from 'which';
|
||||
|
||||
|
|
@ -79,7 +78,7 @@ async function upload() {
|
|||
if (!IsPost) {
|
||||
// Publish a variable so that when the POST action runs, it can determine it should run the cleanup logic.
|
||||
// This is necessary since we don't have a separate entry point.
|
||||
coreCommand.issueCommand('save-state', {name: 'isPost'}, 'true')
|
||||
core.saveState('isPost', 'true');
|
||||
setup()
|
||||
} else {
|
||||
// Post
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue