name: Java CI

on:
  push:
    branches: 
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build with Maven
      run: mvn clean package
    - name: Commit to builds repo
      uses: seanmiddleditch/gha-publish-to-git@master
      with:
        repository: mbennett-uoe/datavault-builds
        branch: master
        github_token: '${{ secrets.GITHUB_TOKEN  }}'
        github_pat: '${{ secrets.GH_PAT }}'
        source_folder: datavault-assembly/target/datavault-assembly-1.0-SNAPSHOT-assembly/datavault-home/
        commit_message: 'Automatic DataVault CI build from commit ${{ GITHUB_SHA }}'
      if: success() && github.event == 'push'

name: Java CI

on:
  push:
    branches: 
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    - name: Build with Maven
      run: mvn clean package
    - name: Commit to builds repo
      uses: seanmiddleditch/gha-publish-to-git@master
      with:
        repository: mbennett-uoe/datavault-builds
        branch: master
        github_token: '${{ secrets.GITHUB_TOKEN  }}'
        github_pat: '${{ secrets.GH_PAT }}'
        source_folder: datavault-assembly/target/datavault-assembly-1.0-SNAPSHOT-assembly/datavault-home/
        commit_message: 'Automatic DataVault CI build from commit ${{ github.sha }}'
      if: success() && github.event == 'push'

Fix environment variable for commit messages
Fix environment variable for commit messages