title: Github actions get SSH link of repository
body: <p>I am using github actions to deploy to a server. Right now I wrote a small bash script to check if directory exists, if so <code>git pull</code> other wise <code>git clone</code>.</p>
  <p>Everything is general, but I am not sure how to get the ssh link of the repository from the environment variables:</p>
  <pre class="lang-yaml prettyprint-override"><code>jobs:
    build:
      runs-on: ubuntu-latest
      steps:
      - uses: actions/checkout@master
  
      - name: Create project dir
        uses: appleboy/ssh-action@master
        with:
          HOST: ${{ secrets.HOST }}
          USERNAME: ${{ secrets.USERNAME }}
          KEY: ${{ secrets.KEY }}
          PORT: ${{ secrets.PORT }}
          script: |
            mkdir -p ~/projects
            cd ~/projects
            if [ -d &quot;${{ github.event.repository.name }}&quot; ]; then
              echo &quot;Directory already exists&quot;
              cd ${{ github.event.repository.name }}
              git pull --rebase
            else
              git clone git@github.com:orgname/projectname.git
            fi
            echo 'Deployment to server succesful!'
  </code></pre>
  <p>So as we can see, <code>git clone git@github.com:orgname/projectname.git</code> is still hardcoded. How could I get this part general as well like <code>github.event.repository.name</code>?</p>
  <hr />
  <p><em>Edit for VonC:</em></p>
  <p>Output on GitHub actions:</p>
  <pre><code>  pwd
    ls -alrth
    git version
    echo &quot;GURL=$(git remote get-url origin)&quot;&gt;&gt;$GITHUB_ENV
    shell: /bin/bash -e {0}
  /home/runner/work/digitalocean-test-deploy/digitalocean-test-deploy
  total 60K
  drwxr-xr-x  3 runner docker 4.0K Dec 27 13:12 ..
  drwxr-xr-x  2 runner docker 4.0K Dec 27 13:12 tests
  drwxr-xr-x  2 runner docker 4.0K Dec 27 13:12 src
  -rw-r--r--  1 runner docker 1.1K Dec 27 13:12 setup.py
  drwxr-xr-x  2 runner docker 4.0K Dec 27 13:12 settings
  -rw-r--r--  1 runner docker   26 Dec 27 13:12 requirements.txt
  drwxr-xr-x  2 runner docker 4.0K Dec 27 13:12 notebooks
  drwxr-xr-x  2 runner docker 4.0K Dec 27 13:12 docs
  drwxr-xr-x  2 runner docker 4.0K Dec 27 13:12 data
  -rw-r--r--  1 runner docker  516 Dec 27 13:12 README.md
  -rw-r--r--  1 runner docker 1.1K Dec 27 13:12 LICENSE
  -rw-r--r--  1 runner docker 1.8K Dec 27 13:12 .gitignore
  drwxr-xr-x  3 runner docker 4.0K Dec 27 13:12 .github
  drwxr-xr-x 10 runner docker 4.0K Dec 27 13:12 .
  drwxr-xr-x  8 runner docker 4.0K Dec 27 13:12 .git
  git version 2.29.2
  </code></pre>