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

The specified initialization vector (IV) does not match the block size for this algorithm