Skip to content

Commit

Permalink
Print branch and commit
Browse files Browse the repository at this point in the history
  • Loading branch information
muilpp committed Dec 13, 2024
1 parent dfa6406 commit 085f5dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/hello-world.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ 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
run: mvn --threads 4 --batch-mode --no-transfer-progress clean install --update-snapshots --file ./dhis-2/pom.xml -DskipTests

- 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

0 comments on commit 085f5dc

Please sign in to comment.