Github action :- Unrecognized named-value: 'GITHUB_REPOSITORY'

 

While trying to use github action, I tried to use environment variable like this. And get Unrecognized named-value: 'GITHUB_REPOSITORY' issues.

  - name: build dotnet
        run: |
            cd ${{ GITHUB_WORKSPACE }}
            cd src/ConsoleApp1
            dotnet restore
            dotnet build

Then i change to the $GITHUB_WORKSPACE, i was able to get it working. 


  - name: build dotnet
        run: |
            cd $GITHUB_WORKSPACE
            cd src/ConsoleApp1
            dotnet restore
            dotnet build


So what is the differences between these? 

$GITHUB_WORKSPACE are used within shell scripts. 




Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type