title: Python automatic versioning not happening while running in github actions
body: <p>I was trying to push the package from the CI directly to pypi after successful build.
  I have tried couple of tools, say &quot;setuptools-scm&quot;, everything works well and i get automatic version change based on my tagging like <code>package-0.0.2.post11-py3-none-any.whl</code> in my local.</p>
  <p>When i push the same code as part of github actions (command <code>Run python3 setup.py sdist bdist_wheel</code>) i dont see the versions getting updated and i always get <code>package-0.0.0-py3-none-any.whl</code></p>
  <p>Below is the snippet of setup.py</p>
  <pre><code>setuptools.setup(
      name=&quot;package&quot;,
      use_scm_version=True,
      setup_requires=['setuptools_scm']
  </code></pre>
  <p>ymlfile:</p>
  <pre><code> publish:
      name: Build and publish Python  distributions  to PyPI and TestPyPI
      runs-on: ubuntu-18.04
      steps:
      - uses: actions/checkout@v2
      - name: Set up Python 3.8
        uses: actions/setup-python@v2
        with:
          python-version: 3.8
      - name: Install scm version
        run: &gt;-
          python -m
          pip install
          setuptools-scm==4.1.2        
      - name: Install wheel
        run: &gt;-
          python -m
          pip install
          wheel==0.34.2
      - name: Build a binary wheel and a source tarball
        run: &gt;-
          python3 setup.py sdist bdist_wheel
      - name: Publish distribution  to Test PyPI
        uses: pypa/gh-action-pypi-publish@master
        with:
          password: ${{ secrets.test_pypi_password }}
          repository_url: https://test.pypi.org/legacy/
      - name: Publish distribution  to PyPI
        if: startsWith(github.ref, 'refs/tags')
        uses: pypa/gh-action-pypi-publish@master
        with:
          password: ${{ secrets.pypi_password }}
  </code></pre>
  <p>pyproject.toml</p>
  <pre><code># pyproject.toml
  [build-system]
  requires = [&quot;setuptools&gt;=42&quot;, &quot;wheel&quot;, &quot;setuptools_scm[toml]&gt;=3.4&quot;]
  [tool.setuptools_scm]
  write_to = &quot;pkg/version.py&quot;
  </code></pre>
  <p>I am not clear what i am doing wrong here, Can any one help to fix this ?</p>
  <p>Thanks</p>