Handle GITHUB_OUTPUT
See original GitHub issueGitHub actions are deprecating the previous set-output
approach for setting outputs in favour of echoing to GITHUB_OUTPUT
(link) as flagged by @stephenandary in #180.
When run inside a dev container, the GITHUB_OUTPUT
location is not accessible (even if the environment variable is set).
Proposed approach to handling this:
- mount the host’s
GITHUB_OUTPUT
location to/mnt/github/output
inside the dev container - set the
GITHUB_OUTPUT
environment variable in the container to/mnt/github/output
This could be done automatically so that this just works as expected for users of the CI action.
Additionally, this approach could be adopted for GITHUB_OUTPUT
, GITHUB_STATE
, GITHUB_ENV
, GITHUB_STEP_SUMMARY
, and GITHUB_PATH
Issue Analytics
- State:
- Created 9 months ago
- Reactions:2
- Comments:5
Top Results From Across the Web
Workflow commands for GitHub Actions
About workflow commands ... Actions can communicate with the runner machine to set environment variables, output values used by other actions, add debug...
Read more >Deprecating save-state and set-output commands
should be updated to write to the new GITHUB_STATE and GITHUB_OUTPUT environment files: - name: Save state run: echo "{name}={value}" ...
Read more >Github Actions $GITHUB_OUTPUT does not seem to be ...
I have been using Github Actions to deploy changes for a data engineering project. I have been getting warnings that set-output command is ......
Read more >Persist output | Dev Cheatsheets - Michael Currin
Handle Yarn cache directory path. We run yarn cache dir command and store and retrieve the value. From Yarn guide. steps: - name:...
Read more >How to Patch the Deprecated set-output in GitHub Workflows ...
name: Set output id: stepid run: echo "count=5" >> $GITHUB_OUTPUT ... To deal with the deprecation of set-output , I've updated it to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, you’re right!
+1! I really need this feature ASAP