title: Github action, maven build fails when using the
body: <p>I try to CI/CD for the jave open source project, which is hosted on github.
  When I build the project with maven local, then it works just fine.</p>
  <p>But the same maven build fails when triggered inside the github/gitaction environment when building the jave-core target.</p>
  <p><a href="https://github.com/a-schild/jave2/blob/develop/jave-core/pom.xml" rel="nofollow noreferrer">https://github.com/a-schild/jave2/blob/develop/jave-core/pom.xml</a></p>
  <p>The special thing, is that I use the org.codehaus.mojo buildnumber-maven-plugin and also the org.codehaus.mojo templating-maven-plugin.</p>
  <p>I think it fails because of this, but I am unable to find how to fix it.</p>
  <p>Here is the gitaction
  <a href="https://github.com/a-schild/jave2/blob/master/.github/workflows/maven.yml" rel="nofollow noreferrer">https://github.com/a-schild/jave2/blob/master/.github/workflows/maven.yml</a></p>
  <p>And here the error log of the build</p>
  <pre><code>[INFO] Executing: /bin/sh -c cd '/home/runner/work/jave2/jave2/jave-core' &amp;&amp; 'git' 'log' '-n1' '--date-order'
  [INFO] Working directory: /home/runner/work/jave2/jave2/jave-core
  [INFO] Executing: /bin/sh -c cd '/home/runner/work/jave2/jave2/jave-core' &amp;&amp; 'git' 'pull' 'https://github.com/a-schild/jave2.git'
  [INFO] Working directory: /home/runner/work/jave2/jave2/jave-core
  Error:  Provider message:
  Error:  The git-pull command failed.
  Error:  Command output:
  Error:  From https://github.com/a-schild/jave2
   * branch            HEAD       -&gt; FETCH_HEAD
  hint: You have divergent branches and need to specify how to reconcile them.
  hint: You can do so by running one of the following commands sometime before
  hint: your next pull:
  hint: 
  hint:   git config pull.rebase false  # merge
  hint:   git config pull.rebase true   # rebase
  hint:   git config pull.ff only       # fast-forward only
  hint: 
  hint: You can replace &quot;git config&quot; with &quot;git config --global&quot; to set a default
  hint: preference for all repositories. You can also pass --rebase, --no-rebase,
  hint: or --ff-only on the command line to override the configured default per
  hint: invocation.
  fatal: Need to specify how to reconcile divergent branches.
  </code></pre>