Update deploy-dev.yml for print context var

This commit is contained in:
snake 2024-11-12 15:55:19 +08:00 committed by GitHub
parent e175ad9963
commit 81116a679d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 9 deletions

View File

@ -4,7 +4,7 @@ on:
workflow_run:
workflows: ["Build and Push API & Web"]
branches:
- "deploy/dev"
- "dev/plugin-deploy"
types:
- completed
@ -14,11 +14,8 @@ jobs:
if: |
github.event.workflow_run.conclusion == 'success'
steps:
- name: Deploy to server
uses: appleboy/ssh-action@v0.1.8
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
${{ vars.SSH_SCRIPT || secrets.SSH_SCRIPT }}
- name: Checkout repository
uses: actions/checkout@v4
- name: debug context var
run: |
echo "Commit ID: ${{ github.sha }}"