<commit_before>name: Release

on:
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2.3.1
        with:
          python-version: "3.7"
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements_pypi.txt
      - name: Build dist
        run: |
          make clean
          make build
      - name: Save build output
        uses: actions/upload-artifact@v2.3.0
        with:
          name: built-output
          path: ./dist

  generate_changelog:
    runs-on: ubuntu-latest
    name: Generate changelog for default branch
    steps:
      - uses: actions/checkout@v2
        with:
          ref: master

      - name: Generate changelog
        uses: charmixer/auto-changelog-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          release_branch: master
          base: HISTORY.md
          since_tag: "0.7.0"

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v3.11.0
        with:
          base: master
          token: ${{ secrets.GITHUB_TOKEN }}
          commit-message: Update changelog
          title: Update changelog
          body: Update the changelog. This PR is created automatically after a new release.
          branch: update-changelog

  publish:
    runs-on: ubuntu-latest
    needs: [build]
    steps:
      - name: Load saved build output
        uses: actions/download-artifact@v2.1.0
        with:
          name: built-output
          path: ./dist
      - name: Publish package
        uses: pypa/gh-action-pypi-publish@v1.4.2
        with:
          user: __token__
          password: ${{ secrets.PYPI_TOKEN }}<commit_msg>Bump peter-evans/create-pull-request from 3.11.0 to 3.12.0 (#480)<commit_after>name: Release

on:
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2.3.1
        with:
          python-version: "3.7"
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements_pypi.txt
      - name: Build dist
        run: |
          make clean
          make build
      - name: Save build output
        uses: actions/upload-artifact@v2.3.0
        with:
          name: built-output
          path: ./dist

  generate_changelog:
    runs-on: ubuntu-latest
    name: Generate changelog for default branch
    steps:
      - uses: actions/checkout@v2
        with:
          ref: master

      - name: Generate changelog
        uses: charmixer/auto-changelog-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          release_branch: master
          base: HISTORY.md
          since_tag: "0.7.0"

      - name: Create Pull Request
        uses: peter-evans/create-pull-request@v3.12.0
        with:
          base: master
          token: ${{ secrets.GITHUB_TOKEN }}
          commit-message: Update changelog
          title: Update changelog
          body: Update the changelog. This PR is created automatically after a new release.
          branch: update-changelog

  publish:
    runs-on: ubuntu-latest
    needs: [build]
    steps:
      - name: Load saved build output
        uses: actions/download-artifact@v2.1.0
        with:
          name: built-output
          path: ./dist
      - name: Publish package
        uses: pypa/gh-action-pypi-publish@v1.4.2
        with:
          user: __token__
          password: ${{ secrets.PYPI_TOKEN }}
{'fraction_non_alphanumeric': 0.0912290200324851, 'fraction_numerical': 0.01597184623714131, 'mean_word_length': 1.6911871813546977, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '899014', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1114, 'n_words': 294}