Skip to content

Commit b4a07ca

Browse files
authored
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 <[email protected]> * ci: enhance CI workflow and API integration - Add `continue-on-error: true` to the GitHub Actions workflow Signed-off-by: appleboy <[email protected]> * ci: improve GitHub Actions workflow reliability - Add `continue-on-error: true` to the GitHub Actions workflow Signed-off-by: appleboy <[email protected]> --------- Signed-off-by: appleboy <[email protected]>
1 parent eaeb069 commit b4a07ca

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,16 @@ jobs:
459459
echo "$GITHUB_BASE_REF"
460460
echo "$GITHUB_REF"
461461
462+
- name: pass secret variable in shell
463+
uses: ./
464+
continue-on-error: true
465+
with:
466+
host: ${{ env.REMOTE_HOST }}
467+
username: linuxserver.io
468+
key: ${{ env.PRIVATE_KEY }}
469+
port: 2222
470+
script: cd ${{ secrets.PORT }}
471+
462472
- name: switch to root user
463473
uses: ./
464474
with:
@@ -491,6 +501,7 @@ jobs:
491501
492502
- name: testing ipv6
493503
uses: ./
504+
continue-on-error: true
494505
with:
495506
host: 2402:1f00:8000:800::2628
496507
username: ubuntu

0 commit comments

Comments
 (0)