devcontainers / ci

A GitHub Action and Azure DevOps Task designed to simplify using Dev Containers (https://containers.dev) in CI/CD systems.
MIT License
302 stars 46 forks source link

Unable to set output inside a devcontainer #289

Open ffMathy opened 2 months ago

ffMathy commented 2 months ago

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/ci@v0.3.1900000349
      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.

samruddhikhandale commented 1 month ago

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