<commit_before># Triggers pipeline in GitLab, creates release if pipeline was successful

name: CI master trigger GitLab

on:
  pull_request:
  push:
    branches: [ master ]

jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Show environment
      run: |
          ls -l
          pwd
    - name: Set up Python 
      uses: actions/setup-python@v2
      with:
        python-version: 3.8
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install requests
        
    - name: Trigger gitlab
      run: python /home/runner/work/zoia/zoia/.github/workflows/trigger_gitlab.py
      env:
        GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
        GITLAB_READ_TOKEN: ${{ secrets.GITLAB_READ_TOKEN }}  
          
  release:
    runs-on: ubuntu-latest
    needs: [build]
    if: ${{ github.ref == 'master' }}
    steps:
     - name: Checkout
       uses: actions/checkout@v2

     - name: Setup Node.js
       uses: actions/setup-node@v1
       with:
        node-version: 12.x

     - name: Install
       run: npm ci

     - name: Release
       run: npx semantic-release
<commit_msg>Update main.yml<commit_after># Triggers pipeline in GitLab, creates release if pipeline was successful

name: CI master trigger GitLab

on:
  pull_request:
  push:
    branches: [ master ]

jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Show environment
      run: |
          ls -l
          pwd
    - name: Set up Python 
      uses: actions/setup-python@v2
      with:
        python-version: 3.8
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install requests
        
    - name: Trigger gitlab
      run: python /home/runner/work/zoia/zoia/.github/workflows/trigger_gitlab.py
      env:
        GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
        GITLAB_READ_TOKEN: ${{ secrets.GITLAB_READ_TOKEN }}  
          
  release:
    runs-on: ubuntu-latest
    needs: [build]
    if: contains(github.ref, 'master')
    steps:
     - name: Checkout
       uses: actions/checkout@v2

     - name: Setup Node.js
       uses: actions/setup-node@v1
       with:
        node-version: 12.x

     - name: Install
       run: npm ci

     - name: Release
       run: npx semantic-release

{'fraction_non_alphanumeric': 0.08994307400379507, 'fraction_numerical': 0.0060721062618595825, 'mean_word_length': 1.9751693002257336, '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': '3069935', 'n_tokens_mistral': 861, 'n_tokens_neox': 827, 'n_words': 243}