Update screen session name variable
Some checks failed
Build and Deploy Spring Boot / build-and-deploy (push) Failing after 32s

Change the screen session name from `JAR_NAME` to `APP_NAME` in the build-deploy workflow to ensure consistency with the application naming convention.
This commit is contained in:
hxuanyu 2024-11-04 18:31:48 +08:00
parent bae94f9f73
commit 0f5a67079e

View File

@ -56,7 +56,7 @@ jobs:
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
script: |
screen -list | grep -q "${{ vars.JAR_NAME }}" && screen -S ${{ vars.JAR_NAME }} -X quit
screen -list | grep -q "${{ vars.APP_NAME }}" && screen -S ${{ vars.APP_NAME }} -X quit
# 使用新版jar包启动应用
- name: 使用新版jar包启动应用
uses: appleboy/ssh-action@master