From e230c6a9ee19bef08eae150f561c90da1ce6e742 Mon Sep 17 00:00:00 2001 From: Minji Kim <79117648+minji1289@users.noreply.github.com> Date: Thu, 2 Nov 2023 20:29:34 +0900 Subject: [PATCH] Update github-actions-demo.yml --- .github/workflows/github-actions-demo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 9e24aa0..0b1b875 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -19,4 +19,6 @@ jobs: script: | cd /home/ec2-user/apps/step1 sh deploy.sh - nohup java -jar $JAR_NAME & + JAR_NAME=$(ls -tr $REPOSITORY/ | grep jar | head -n 1) + echo "> JAR Name: $JAR_NAME" + nohup java -jar $JAR_NAME &