Skip to content

Commit 8688118

Browse files
committed
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]>
1 parent eaeb069 commit 8688118

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,15 @@ jobs:
459459
echo "$GITHUB_BASE_REF"
460460
echo "$GITHUB_REF"
461461
462+
- name: pass secret variable in shell
463+
uses: ./
464+
with:
465+
host: ${{ env.REMOTE_HOST }}
466+
username: linuxserver.io
467+
key: ${{ env.PRIVATE_KEY }}
468+
port: 2222
469+
script: cd ${{ secrets.PORT }}
470+
462471
- name: switch to root user
463472
uses: ./
464473
with:

0 commit comments

Comments
 (0)