Skip to content

ssh-key didn't checkout with ssh url #291

Open
@lunawen

Description

@lunawen

Hi,
I've got a simple automated workflow for my static blog, here's my config:

- name: Checkout Repo
        uses: actions/checkout@v2
        with:
          ssh-key: ${{ secrets.DEPLOY_KEY }}
  • I've got DEPLOY_KEY in my repo's secret,
  • the public key is added to my user settings.
  • The workflow can run successful

except when I use git remote get-url origin, I find it is still an HTTPS url.
I would like to have ssh url, is there anything I missed in this config?

image

Thanks for your help.

Luna

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions