Passing env var between steps fails on Windows runners if var written to ${{ github.env }} #178020
              
                Unanswered
              
          
                  
                    
                      MarkCallow
                    
                  
                
                  asked this question in
                Actions
              
            Replies: 1 comment 2 replies
-
| Use  
 If you really want to use ${{ github.env }}, switch the step’s shell on Windows to pwsh or cmd. Otherwise just stick with $GITHUB_ENV. If you think it’s a runner bug, file it here: https://github.com/actions/runner/issues Hope that helps! | 
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Bug
What GitHub Actions topic or product is this about?
Actions Runner
Discussion Details
If I have the following in my workflow
it works on Linux, macOS and Windows runners. If I change the run in the first step to
then on Windows runners the second step does not see
KTX_VERSIONso the artifact name is justlibktx-. It works fine on Linux and macOS runners.It looks like a bug to me but I have no idea the proper place to file an issue.
Beta Was this translation helpful? Give feedback.
All reactions