<commit_before>name: Package and Upload Helm Chart Release

on: [push]

jobs:
  build:
    name: Package and Upload Helm Chart Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Get the version
        id: get_version
        run: echo ::set-output name=VERSION::$(cat contrib/helm/charts/aleph/Chart.yaml | grep version | awk '{print $2}')
      - name: Get the tag
        if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
        id: get_tag
        run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
      - name: Package chart
        uses: WyriHaximus/github-action-helm3@v2
        with:
          exec: helm package contrib/helm/charts/aleph --version ${{ steps.get_version.outputs.VERSION }}

      - name: Create Release for commit hash
        id: create_release_commit
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          release_name: Aleph ${{ github.sha }}
          draft: false
          prerelease: true
      - name: Upload Release Asset
        id: upload_release_asset_commit
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release_commit.outputs.upload_url }}
          asset_path: ./aleph-${{ steps.get_version.outputs.VERSION }}.tgz
          asset_name: aleph-${{ steps.get_version.outputs.VERSION }}.tgz<commit_msg>tag name is required to create a release<commit_after>name: Package and Upload Helm Chart Release

on: [push]

jobs:
  build:
    name: Package and Upload Helm Chart Release
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Get the version
        id: get_version
        run: echo ::set-output name=VERSION::$(cat contrib/helm/charts/aleph/Chart.yaml | grep version | awk '{print $2}')
      - name: Get the tag
        if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
        id: get_tag
        run: echo ::set-output name=TAG::${GITHUB_REF/refs\/tags\//}
      - name: Package chart
        uses: WyriHaximus/github-action-helm3@v2
        with:
          exec: helm package contrib/helm/charts/aleph --version ${{ steps.get_version.outputs.VERSION }}

      - name: Create Release for commit hash
        id: create_release_commit
        uses: actions/create-release@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          tag_name: ${{ steps.get_version.outputs.VERSION }}
          release_name: Aleph ${{ github.sha }}
          draft: false
          prerelease: true
      - name: Upload Release Asset
        id: upload_release_asset_commit
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ steps.create_release_commit.outputs.upload_url }}
          asset_path: ./aleph-${{ steps.get_version.outputs.VERSION }}.tgz
          asset_name: aleph-${{ steps.get_version.outputs.VERSION }}.tgz
{'fraction_non_alphanumeric': 0.11367954401519949, 'fraction_numerical': 0.0037998733375554147, 'mean_word_length': 2.3357972544878565, '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': '4367774', 'n_tokens_mistral': 996, 'n_tokens_neox': 952, 'n_words': 232}