Skip to content

Commit

Permalink
refactor: refactor command execution for root user switch operation
Browse files Browse the repository at this point in the history
- Change the name of the job from "switch root user" to "switch to root user"
- Replace the command "sudo su - -c 'whoami'" with "sudo whoami"

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jan 7, 2024
1 parent 28cfaee commit 25f3b2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ jobs:
- name: checkout
uses: actions/checkout@v1

- name: switch root user
- name: switch to root user
uses: ./
with:
host: ${{ secrets.HOST }}
Expand All @@ -281,4 +281,4 @@ jobs:
command_timeout: 30s
script: |
whoami && echo 'hello world' && touch todo.txt
sudo su - -c 'whoami'
sudo whoami

0 comments on commit 25f3b2f

Please sign in to comment.