ci: enhance GitHub Actions with secret variable support (#330)

* ci: enhance GitHub Actions with secret variable support

- Add a step to pass secret variables in the shell within the GitHub Actions workflow

Signed-off-by: appleboy <appleboy.tw@gmail.com>

* ci: enhance CI workflow and API integration

- Add `continue-on-error: true` to the GitHub Actions workflow

Signed-off-by: appleboy <appleboy.tw@gmail.com>

* ci: improve GitHub Actions workflow reliability

- Add `continue-on-error: true` to the GitHub Actions workflow

Signed-off-by: appleboy <appleboy.tw@gmail.com>

---------

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-07-20 13:32:11 +08:00 committed by GitHub
parent eaeb06998d
commit b4a07ca594
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -459,6 +459,16 @@ jobs:
echo "$GITHUB_BASE_REF" echo "$GITHUB_BASE_REF"
echo "$GITHUB_REF" echo "$GITHUB_REF"
- name: pass secret variable in shell
uses: ./
continue-on-error: true
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
key: ${{ env.PRIVATE_KEY }}
port: 2222
script: cd ${{ secrets.PORT }}
- name: switch to root user - name: switch to root user
uses: ./ uses: ./
with: with:
@ -491,6 +501,7 @@ jobs:
- name: testing ipv6 - name: testing ipv6
uses: ./ uses: ./
continue-on-error: true
with: with:
host: 2402:1f00:8000:800::2628 host: 2402:1f00:8000:800::2628
username: ubuntu username: ubuntu