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 &