question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handle GITHUB_OUTPUT

See original GitHub issue

GitHub 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:open
  • Created 9 months ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
stuartleekscommented, Dec 18, 2022

Yes, you’re right!

0reactions
joseviccruzcommented, Dec 22, 2022

+1! I really need this feature ASAP

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found