title: GitHub Tag action does not add tag
body: <p>I am trying to add tags to all commits that pass checks. I started with a template that includes the tests.</p>
  <p><a href="https://i.stack.imgur.com/LbNOs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LbNOs.png" alt="enter image description here" /></a></p>
  <p>Everything runs as expected, however, when I check the tags, it does not show any were added.</p>
  <p><a href="https://i.stack.imgur.com/PDyIw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PDyIw.png" alt="enter image description here" /></a></p>
  <p>Here is my full <code>build.yml</code>:</p>
  <pre class="lang-yaml prettyprint-override"><code># Automatically build the project and run any configured tests for every push
  # and submitted pull request. This can help catch issues that only occur on
  # certain platforms or Java versions, and provides a first line of defence
  # against bad commits.
  
  name: build
  on:
    pull_request:
      branches: ['*']
    push:
      branches: ['master']
  
  jobs:
    build:
      strategy:
        matrix:
          # Use these Java versions
          java: [
            1.8,  # Minimum supported by Minecraft
            11,   # Current Java LTS
            15    # Latest version
          ]
          # and run on both Linux and Windows
          os: [ubuntu-20.04, windows-latest]
      runs-on: ${{ matrix.os }}
      steps:
        - uses: actions/checkout@v2
        - name: bump version and push tag
          id: tag_version
          if: ${{ github.event_name == 'push' &amp;&amp; runner.os == 'Linux' &amp;&amp; matrix.java == '11' }}
          uses: mathieudutour/github-tag-action@v5.1
          with:
            github_token: ${{ secrets.GITHUB_TOKEN }}
            create_annotated_tag: true
        - name: validate gradle wrapper
          uses: gradle/wrapper-validation-action@v1
        - name: setup jdk ${{ matrix.java }}
          uses: actions/setup-java@v1
          with:
            java-version: ${{ matrix.java }}
        - name: make gradle wrapper executable
          if: ${{ runner.os != 'Windows' }}
          run: chmod +x ./gradlew
        - name: build
          run: ./gradlew build
        - name: capture build artifacts
          if: ${{ runner.os == 'Linux' &amp;&amp; matrix.java == '11' }} # Only upload artifacts built from LTS java on one OS
          uses: actions/upload-artifact@v2
          with:
            name: Artifacts
            path: build/libs/
  </code></pre>
  <p>And here are my actions run: <a href="https://github.com/cloewen8/Corntopia/actions" rel="nofollow noreferrer">https://github.com/cloewen8/Corntopia/actions</a></p>
  <p>I have been working on getting this working for the past hour. I tried moving the &quot;bump version and push tag&quot; task from the end to right after checkout, adding and removing the id, changing were <code>github_token</code> is defined, making the tag annotated, tried the previous release of the task, using the tag in a release (said new_tag was not defined), even following the example provided for the task exactly.</p>
  <p>Am I doing anything wrong? Anything else I should try?</p>