ci icon indicating copy to clipboard operation
ci copied to clipboard

Unable to set output inside a devcontainer

Open ffMathy opened this issue 1 year ago • 1 comments

When using the new non-deprecated way of setting outputs in GitHub Actions ( https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ ), it is not working. I assume it is because $GITHUB_OUTPUT refers to some file or pipe which is not set in the devcontainer.

    - name: Execute DevContainer commands
      uses: devcontainers/[email protected]
      with:
        runCmd: |
          echo "foo=bar" >> $GITHUB_OUTPUT

Now, I would expect the output foo to be available and usable in other steps or jobs, but it is not.

ffMathy avatar Apr 22 '24 12:04 ffMathy

@gauravsaini04 / @prathameshzarkar9 Can either of you help with investigating this? Thanks!

samruddhikhandale avatar Jun 04 '24 21:06 samruddhikhandale