mirror of
https://github.com/appleboy/ssh-action.git
synced 2026-03-26 14:00:23 +00:00
refactor: refactor sudo commands in GitHub actions
- Remove the line `name: login GitHub Container Registry` - Add the line `name: sudo command` - Remove the line `sudo su - -c whoami` - Add the line `sudo whoami` https://github.com/appleboy/ssh-action/issues/279 Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
6f6abb1fa9
commit
95527f53d0
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -269,7 +269,7 @@ jobs:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: login GitHub Container Registry
|
||||
- name: sudo command
|
||||
uses: ./
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
@ -278,4 +278,4 @@ jobs:
|
||||
port: ${{ secrets.PORT }}
|
||||
script_stop: true
|
||||
script: |
|
||||
sudo su - -c whoami
|
||||
sudo whoami
|
||||
|
||||
Loading…
Reference in New Issue
Block a user