<commit_before>name: CI

on:
  push:
    branches:
    - master

jobs:
  split-upm:
    name: split upm branch (force)
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - name: split upm branch
      run: |
        echo '### head info'
        git log -1

        echo '### delete local upm branch'
        git branch -d upm &> /dev/null || echo local upm branch not found
        echo

        echo '### split upm branch'
        git subtree split -P "$PKG_ROOT" -b upm

        echo '### checkout upm branch'
        git checkout upm

        echo '### list files'
        ls -l

        if [[ -d "Samples" ]]; then
          echo '### move Samples => Samples~'
          mv Samples Samples~
          rm -f Samples.meta
          git config --global user.name 'github-bot'
          git config --global user.email '<EMAIL>'
          git commit -am "fix: Samples => Samples~"
        fi

        echo '### force overwrite remote upm branch'
        git push -f -u origin upm
      env:
        PKG_ROOT: Assets/NaughtyAttributes
<commit_msg>fix: ci move Samples folder error<commit_after>name: CI

on:
  push:
    branches:
    - master

jobs:
  split-upm:
    name: split upm branch (force)
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - name: split upm branch
      run: |
        echo '### head info'
        git log -1

        echo '### delete local upm branch'
        git branch -d upm &> /dev/null || echo local upm branch not found
        echo

        echo '### split upm branch'
        git subtree split -P "$PKG_ROOT" -b upm

        echo '### checkout upm branch'
        git checkout upm

        echo '### list files'
        ls -l

        if [[ -d "Samples" ]]; then
          echo '### move Samples => Samples~'
          git mv Samples Samples~
          rm -f Samples.meta
          git config --global user.name 'github-bot'
          git config --global user.email '<EMAIL>'
          git commit -am "fix: Samples => Samples~"
        fi

        echo '### force overwrite remote upm branch'
        git push -f -u origin upm
      env:
        PKG_ROOT: Assets/NaughtyAttributes

{'fraction_non_alphanumeric': 0.10538116591928251, 'fraction_numerical': 0.0026905829596412557, 'mean_word_length': 1.6465005931198102, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1038937', 'n_tokens_mistral': 715, 'n_tokens_neox': 670, 'n_words': 242}