GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add save-state and set-output file commands by rentziass · Pull Request #1178 · actions/toolkit

Conversation

@rentziass

@rentziass rentziass commented Sep 13, 2022

Copy link
Copy Markdown
Member

This adds support for the file command version of save-state and set-output that are being added to the runner in #2118.

In the case that these commands are being used on a runner that doesn't support the file-command versions they will fallback to the pre-existing workflow commands.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

paescuj, azrsh, kachkaev, mrienstra, brianluckham, tomonori-suzuki, and Ramyromel reacted with hooray emoji
All reactions
  • 🎉 7 reactions
@rentziass
rentziass requested a review from a team as a code owner September 13, 2022 16:58
thboop
thboop reviewed Sep 13, 2022
View reviewed changes
Comment thread packages/core/src/core.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

thboop
thboop reviewed Sep 13, 2022
View reviewed changes
Comment thread packages/core/src/file-command.ts
}

export function prepareKeyValueMessage(key: string, value: any): string {
const delimiter = `ghadelimiter_${uuidv4()}`

@thboop thboop Sep 13, 2022

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 on the refactor

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

347303308 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@rentziass
rentziass force-pushed the rentziass/file-commands branch from 9579083 to c08ee23 Compare September 16, 2022 17:57
rentziass added 2 commits September 28, 2022 13:53
@rentziass
Add save-state and set-output file commands
44f5f95
@rentziass
Address review comments
28f9431
@rentziass
rentziass force-pushed the rentziass/file-commands branch from c08ee23 to 28f9431 Compare September 28, 2022 13:53
@rentziass
rentziass requested review from a team as code owners September 28, 2022 14:16
@rentziass
rentziass force-pushed the rentziass/file-commands branch from a44786d to 28f9431 Compare September 28, 2022 14:18
@rentziass
rentziass removed request for a team September 28, 2022 14:19
@rentziass
default new env vars to empty
3a95e19
thboop
thboop approved these changes Sep 29, 2022
View reviewed changes

@thboop thboop left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

347303308 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@rentziass
rentziass merged commit b00a9fd into main Sep 29, 2022
@rentziass
rentziass deleted the rentziass/file-commands branch September 29, 2022 13:45
@rentziass rentziass mentioned this pull request Sep 29, 2022
@actions/core 1.10.0 release #1187
Merged
@paescuj paescuj mentioned this pull request Sep 29, 2022
Unecessary newlines added to console output #777
Closed
This was referenced Oct 4, 2022
fix(test): set hard version of core to avoid issue with setoutput sfeir-open-source/sfeir-school-github-action-dev#42
Merged
Update toolkit/core to latest version sfeir-open-source/sfeir-school-github-action-dev#45
Closed
This was referenced Oct 6, 2022
Update @actions/core to 1.10.0 actions/cache#950
Merged
Update @actions/core to 1.10.0 actions/add-to-project#231
Merged
Update @actions/core to 1.10.0 actions/configure-pages#31
Merged
Update @actions/core to 1.10.0 actions/deploy-pages#69
Merged
Update @actions/core to 1.10.0 actions/download-artifact#178
Merged
Update @actions/core to 1.10.0 actions/github-script#295
Merged
Update @actions/core to 1.10.0 actions/javascript-action#259
Merged
Update @actions/core to 1.10.0 actions/labeler#444
Merged
Update @actions/core to 1.10.0 actions/publish-action#14
Closed
Update @actions/core to 1.10.0 actions/setup-dotnet#331
Merged
@joshuanapoli joshuanapoli mentioned this pull request Dec 15, 2022
Replace lodash.get with JMESPath query CumulusDS/get-yaml-paths-action#55
Merged
@SamirMarin SamirMarin mentioned this pull request Dec 28, 2022
Update to node16 and actions/core to latest 1047Games/setup-build-matrix#1
Merged
@gjtorikian gjtorikian mentioned this pull request Dec 28, 2022
I think this action or one of its dependencies are using an outdated GitHub Action syntax oxidize-rb/cross-gem-action#93
Closed
redian added a commit to redian/tar-action that referenced this pull request Jan 5, 2023
@redian
Update @actions/core to fix the set-output warning
79bd829
In version 1.10.0 of `@actions/core` they have fixed the warning we are getting for set-output in our github actions.

As per per this PR actions/toolkit#1178
And as discussed here actions/toolkit#1218
@warnyul warnyul mentioned this pull request Jan 30, 2023
Update @actions/core to 1.10.0 jwenz723/github-app-installation-token#4
Merged
@christophebedard christophebedard mentioned this pull request Feb 12, 2023
Warning: The set-output command is deprecated and will be disabled soon. ros-tooling/action-ros-ci#780
Closed
@rentziass rentziass mentioned this pull request Mar 8, 2023
Upgrade @actions/core to 1.10.0 for v2 actions/download-artifact#210
Merged
@dangoslen dangoslen mentioned this pull request Mar 14, 2023
Warning in Changelog Enforcer output dangoslen/changelog-enforcer#222
Closed
This was referenced Mar 16, 2023
Fixes for warnings and errors in the build. coqui-ai/STT#2345
Merged
Bug: Update set-output calls for ci pipeline v3 coqui-ai/STT#2351
Closed
@alexrashed alexrashed mentioned this pull request Mar 20, 2023
fix multiline outputs mad9000/actions-find-and-replace-string#11
Merged
skeggse
skeggse reviewed Apr 19, 2023
View reviewed changes
Comment thread packages/core/src/file-command.ts
Comment on lines +34 to +38
if (key.includes(delimiter)) {
throw new Error(
`Unexpected input: name should not contain the delimiter "${delimiter}"`
)
}

@skeggse skeggse Apr 19, 2023

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check for the delimiter in the key feels a little misleading to me - if the key is user-controlled, it can still be used to add additional outputs if that's the risk being mitigated here; the delimiter doesn't capture the key, it just captures the value.

Suggested change
if (key.includes(delimiter)) {
throw new Error(
`Unexpected input: name should not contain the delimiter "${delimiter}"`
)
}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

harshita-gupta reacted with thumbs up emoji harshita-gupta reacted with eyes emoji
All reactions
  • 👍 1 reaction
  • 👀 1 reaction
@AntoniosBarotsis AntoniosBarotsis mentioned this pull request May 21, 2023
Migrate off of deprecated GitHub Actions save-state command google/zerocopy#173
Closed
@benjamincitrin benjamincitrin mentioned this pull request Jun 2, 2023
The "set-output" command is deprecated and will be disabled soon. vemonet/setup-spark#21
Closed
elliottkember added a commit to elliottkember/github-actions-query-branch-name that referenced this pull request Jul 20, 2023
@elliottkember
Update package.json
e20b544
The `@actions/core` package has been updated to squash this warning:

> The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Notes:

> Action authors who are using the toolkit should update the @actions/core package to v1.10.0 or greater to get the updated saveState and setOutput functions.

https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md
> ### 1.10.0
> - `saveState` and `setOutput` now use environment files if available [#1178](actions/toolkit#1178)
@elsewhat elsewhat mentioned this pull request Aug 3, 2023
Warning on runs due to set-output command deprecated anthonyvscode/newman-action#450
Open
@per1234 per1234 mentioned this pull request Sep 1, 2023
set-output deprecation MrOctopus/download-asset-action#6
Closed
@davidgamero davidgamero mentioned this pull request Sep 3, 2024
Feature Request: Migrate from set-output Azure/setup-kubectl#105
Closed
@emilymclean emilymclean mentioned this pull request Nov 13, 2024
Fix usage of deprecated set-output command recih/template-render-action#10
Merged
levibostian added a commit to levibostian/decaf that referenced this pull request Nov 26, 2024
@levibostian
fix: github actions set-output is deprecated
0749c3d
When running the tool, I get warning:
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

But I'm using the latest 1.11.0 version of actions/core npm module so this shouldn't happen? I found the PR that implemented a fix for the deprecation, actions/toolkit#1178, and in it, I see that it checks if it has access to the GITHUB_OUTPUT environment variable. If it doesn't, it will fallback to previous behavior.

commit-id:c8c672a4
@levibostian levibostian mentioned this pull request Nov 26, 2024
fix: github actions set-output is deprecated levibostian/decaf#40
Closed
levibostian added a commit to levibostian/decaf that referenced this pull request Nov 26, 2024
@levibostian
fix: github actions set-output is deprecated
70e1624
When running the tool, I get warning:
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

But I'm using the latest 1.11.0 version of actions/core npm module so this shouldn't happen? I found the PR that implemented a fix for the deprecation, actions/toolkit#1178, and in it, I see that it checks if it has access to the GITHUB_OUTPUT environment variable. If it doesn't, it will fallback to previous behavior.

commit-id:c8c672a4
levibostian added a commit to levibostian/decaf that referenced this pull request Nov 26, 2024
@levibostian
fix: github actions set-output is deprecated
bebf3d8
When running the tool, I get warning:
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

But I'm using the latest 1.11.0 version of actions/core npm module so this shouldn't happen? I found the PR that implemented a fix for the deprecation, actions/toolkit#1178, and in it, I see that it checks if it has access to the GITHUB_OUTPUT environment variable. If it doesn't, it will fallback to previous behavior.

commit-id:c8c672a4
levibostian added a commit to levibostian/decaf that referenced this pull request Nov 28, 2024
@levibostian
fix: github actions set-output is deprecated
8709365
When running the tool, I get warning:
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

But I'm using the latest 1.11.0 version of actions/core npm module so this shouldn't happen? I found the PR that implemented a fix for the deprecation, actions/toolkit#1178, and in it, I see that it checks if it has access to the GITHUB_OUTPUT environment variable. If it doesn't, it will fallback to previous behavior.

commit-id:c8c672a4
levibostian added a commit to levibostian/decaf that referenced this pull request Feb 17, 2025
@levibostian
fix: github actions set-output is deprecated
3690adb
When running the tool, I get warning:
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

But I'm using the latest 1.11.0 version of actions/core npm module so this shouldn't happen? I found the PR that implemented a fix for the deprecation, actions/toolkit#1178, and in it, I see that it checks if it has access to the GITHUB_OUTPUT environment variable. If it doesn't, it will fallback to previous behavior.

commit-id:c8c672a4
@github-actions github-actions Bot mentioned this pull request Aug 4, 2025
Parse git commits and provide to step scripts as input levibostian/decaf#77
Merged
1 of 2 tasks
@github-actions github-actions Bot mentioned this pull request Nov 20, 2025
feat: run multiple commands for steps levibostian/decaf#99
Merged
1 of 2 tasks
This was referenced Sep 16, 2026
Distrust Green Gate misreports a collection error as "ALL tests skip" and offers a waiver that cannot apply jaylfc/taOS#3106
Merged
add cleanup cache workflow and add scope to cache RedHatInsights/insights-advisor-frontend#2265
Merged
Derrick-MUGISHA pushed a commit to Derrick-MUGISHA/toolkit that referenced this pull request Oct 12, 2026
@rentziass
Add save-state and set-output file commands (actions#1178)
0a4f566
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@thboop thboop thboop approved these changes
+1 more reviewer
@skeggse skeggse skeggse left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@rentziass @bradyclifford @skeggse @thboop
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.