Skip to content

Unable to set output inside a devcontainer #289

@ffMathy

Description

@ffMathy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions