From 24f8bff802a88540bcdb4d6a360e73af2bfeb3af Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 22 Sep 2024 23:51:02 +0100 Subject: [PATCH] feat: no longer ask teh user to enter their own username --- .forgejo/workflows/push.yaml | 2 +- README.md | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/push.yaml b/.forgejo/workflows/push.yaml index 28c7f17..9a6c21d 100644 --- a/.forgejo/workflows/push.yaml +++ b/.forgejo/workflows/push.yaml @@ -25,6 +25,6 @@ jobs: uses: https://forgejo.skynet.ie/Skynet/actions/deploy_user@v5 with: ssh_key: ${{ secrets.SSH_KEY }} - username: ${{ secrets.USERNAME }} + username: ${{ env.GITHUB_REPOSITORY_OWNER }} folder: "src" #destination: "subfolder" \ No newline at end of file diff --git a/README.md b/README.md index 5873eba..5967628 100644 --- a/README.md +++ b/README.md @@ -7,12 +7,10 @@ Details to do this can be found here: [wiki](https://wiki.skynet.ie/tutorials/sk It is recommended to create a new key for just Forgejo Actions. ## Secrets -Two secrets must be added to make this work. +One secret must be added to make this work. Secrets are found in your repo under ``Settings > Actions > Secrets`` -* USERNAME - * This is your skynet username * SSH_KEY * This is your private key that was generated above