<commit_before>name: pypi.yml

on:
  push:
    tags:        
      - '*'

jobs:
  deploy:
    if: github.repository == 'google-research/kubric'  # prevents action from running on forks
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.7
    - name: Install python requirements
      run: |
        python -m pip install --upgrade pip
        pip install -U -r requirements.txt
        pip install -U setuptools
        pip install -U twine<commit_msg>checking whether tag name can be read<commit_after>name: pypi.yml

on:
  push:
    tags:        
      - '*'

jobs:
  deploy:
    if: github.repository == 'google-research/kubric'  # prevents action from running on forks
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.7
    # - name: Install python requirements
    #   run: |
    #     python -m pip install --upgrade pip
    #     pip install -U -r requirements.txt
    #     pip install -U setuptools
    #     pip install -U twine
    - name: fetching the git tag that triggered the action
      id: get_version
      run: 
        echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
    - name: checking whether the tag is correct
      run: echo ${{ steps.get_version.outputs.VERSION }}
{'fraction_non_alphanumeric': 0.09646079111727966, 'fraction_numerical': 0.005551700208188758, 'mean_word_length': 2.08779443254818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '326957', 'n_tokens_mistral': 467, 'n_tokens_neox': 444, 'n_words': 138}