Skip to content

Commit

Permalink
chore: standardize formatting and update dependencies in workflows
Browse files Browse the repository at this point in the history
- Change the title format in the bug report template from single quotes to double quotes
- Update `appleboy/ssh-action` version from `v1.2.0` to `v1.2.1` in multiple workflow files
- Remove unnecessary blank lines in the bug report template

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Feb 19, 2025
1 parent 49751ff commit 8faa842
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 63 deletions.
20 changes: 9 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
title: ""
labels: bug
assignees: appleboy

---

## Describe the bug
Expand All @@ -19,19 +18,18 @@ Please post your Yaml configuration file along with the output results.
name: remote ssh command
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected].0
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
- name: executing remote ssh commands using password
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
```
## Related environment
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
sleep 2
- name: ssh by username and password
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand All @@ -43,7 +43,7 @@ jobs:
whoami
- name: ssh commands from a file
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
sleep 2
- name: ssh by private key
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand All @@ -104,7 +104,7 @@ jobs:
script: whoami

- name: wrong password but correct key
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand All @@ -114,7 +114,7 @@ jobs:
script: whoami

- name: correct password but wrong key
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
sleep 2
- name: ssh key passphrase
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand All @@ -179,7 +179,7 @@ jobs:
ls -al
- name: missing ssh key passphrase
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
continue-on-error: true
with:
host: ${{ env.REMOTE_HOST }}
Expand All @@ -192,7 +192,7 @@ jobs:
# https://github.com/appleboy/ssh-action/issues/75#issuecomment-668314271
- name: Multiline SSH commands interpreted as single lines
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:
# https://github.com/appleboy/ssh-action/issues/85
- name: Deployment to multiple hosts with different ports
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: "${{ env.REMOTE_HOST_01 }}:2222,${{ env.REMOTE_HOST_02 }}:2222"
username: linuxserver.io
Expand Down Expand Up @@ -322,7 +322,7 @@ jobs:
sleep 2
- name: testing id_ed25519 key
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand Down Expand Up @@ -375,7 +375,7 @@ jobs:
sleep 2
- name: testing id_ed25519 key
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand All @@ -386,7 +386,7 @@ jobs:
ls -al
- name: pass environment
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
env:
FOO: "BAR"
with:
Expand All @@ -400,7 +400,7 @@ jobs:
echo "I am $BAR, thanks"
- name: pass multiple environment
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
env:
FOO: "BAR"
BAR: "FOO"
Expand All @@ -419,7 +419,7 @@ jobs:
echo "port: $PORT"
- name: custom envs format
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
env:
FOO: "BAR"
AAA: "BBB"
Expand All @@ -437,7 +437,7 @@ jobs:
echo "I am $TEST_AAA, thanks"
- name: pass all ENV variables to script
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
env:
INPUT_FOO: "BAR"
INPUT_AAA: "BBB"
Expand All @@ -454,7 +454,7 @@ jobs:
echo "$GITHUB_REF"
- name: switch to root user
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: linuxserver.io
Expand Down Expand Up @@ -179,7 +179,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"

```yaml
- name: executing remote ssh commands using password
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -192,7 +192,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
```yaml
- name: executing remote ssh commands using ssh key
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -205,7 +205,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
```yaml
- name: multiple command
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -222,7 +222,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
```yaml
- name: file commands
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -235,7 +235,7 @@ ssh-keygen -t ed25519 -a 200 -C "[email protected]"
```diff
- name: multiple host
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
- host: "foo.com"
+ host: "foo.com,bar.com"
Expand All @@ -253,7 +253,7 @@ The default value of `port` is `22`.

```diff
- name: multiple host
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
- host: "foo.com"
+ host: "foo.com:1234,bar.com:5678"
Expand All @@ -268,7 +268,7 @@ The default value of `port` is `22`.

```diff
- name: multiple host
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: "foo.com,bar.com"
+ sync: true
Expand All @@ -284,7 +284,7 @@ The default value of `port` is `22`.

```diff
- name: pass environment
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
+ env:
+ FOO: "BAR"
+ BAR: "FOO"
Expand Down Expand Up @@ -331,7 +331,7 @@ Host FooServer

```diff
- name: ssh proxy command
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -354,7 +354,7 @@ It is not uncommon for files to leak from backups or decommissioned hardware, an

```diff
- name: ssh key passphrase
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -380,7 +380,7 @@ Now you can adjust you config:

```diff
- name: ssh key passphrase
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand Down
24 changes: 12 additions & 12 deletions README.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand Down Expand Up @@ -162,7 +162,7 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]

```yaml
- name: executing remote ssh commands using password
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -175,7 +175,7 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]
```yaml
- name: executing remote ssh commands using ssh key
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -188,7 +188,7 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]
```yaml
- name: multiple command
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -205,7 +205,7 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]
```diff
- name: multiple host
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
- host: ”foo.com“
+ host: ”foo.com,bar.com“
Expand All @@ -221,7 +221,7 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]
```yaml
- name: file commands
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -234,7 +234,7 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]
```diff
- name: multiple host
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
- host: ”foo.com“
+ host: ”foo.com:1234,bar.com:5678“
Expand All @@ -249,7 +249,7 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]
```diff
- name: multiple host
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ”foo.com,bar.com“
+ sync: true
Expand All @@ -265,7 +265,7 @@ ssh-keygen -t ed25519 -a 200 -C ”[email protected]
```diff
- name: pass environment
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
+ env:
+ FOO: ”BAR“
+ BAR: ”FOO“
Expand Down Expand Up @@ -312,7 +312,7 @@ Host FooServer

```diff
- name: ssh proxy command
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -333,7 +333,7 @@ Host FooServer

```diff
- name: ssh key passphrase
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand All @@ -359,7 +359,7 @@ ssh example.com ssh-keygen -l -f /etc/ssh/ssh_host_ed25519_key.pub | cut -d ’

```diff
- name: ssh key passphrase
uses: appleboy/[email protected].0
uses: appleboy/[email protected].1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
Expand Down
Loading

0 comments on commit 8faa842

Please sign in to comment.