From 085f5dc790c91cc25e71ceca4c9bba34a603eb90 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 13 Dec 2024 16:13:24 +0100 Subject: [PATCH] Print branch and commit --- .github/workflows/hello-world.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hello-world.yml b/.github/workflows/hello-world.yml index 356202135c1d..e1c244c12421 100644 --- a/.github/workflows/hello-world.yml +++ b/.github/workflows/hello-world.yml @@ -22,7 +22,10 @@ jobs: # Set up Maven - name: Set up Maven - run: sudo apt-get install maven + run: | + sudo apt-get install maven + echo "On branch: $GITHUB_REF_NAME" + echo "Git commit: ${{ github.sha }}"" # Run Maven build - name: Build with Maven @@ -30,7 +33,7 @@ jobs: - name: Sync war run: | - echo 'Syncing WAR for $GITHUB_REF_NAME' + echo "Syncing WAR ..." curl "https://raw.githubusercontent.com/dhis2/dhis2-server-setup/master/ci/scripts/copy-war-s3.sh" -O chmod +x copy-war-s3.sh ./copy-war-s3.sh dev $GITHUB_REF_NAME \ No newline at end of file