<commit_before>name: Publish release

on:
  workflow_dispatch:
    inputs:
      tag:
        description: Tag to publish
        required: true

jobs:
  apt_repository:
    name: Publish to apt repository
    runs-on: ubuntu-latest

    steps:<commit_msg>Skip apt repo publish if not stable tag (#3423)<commit_after>name: Publish release

on:
  workflow_dispatch:
    inputs:
      tag:
        description: Tag to publish
        required: true

jobs:
  extract_channel:
    name: Extract the release channel
    runs-on: ubuntu-latest
    steps:
      - name: Extract release channel from tag
        id: extract
        run: |
          if [[ ${{ github.event.inputs.tag }} =~ ^core@[0-9]{4}\.[0-9]+\.[0-9]+$ ]]; then
            echo ::set-output name=channel::stable
          fi
    outputs:
      channel: ${{ steps.extract.outputs.channel }}

  apt_repository:
    name: Publish to apt repository
    runs-on: ubuntu-latest
    needs: extract_channel
    if: needs.extract_channel.outputs.channel == 'stable'

    steps:
{'fraction_non_alphanumeric': 0.10495626822157435, 'fraction_numerical': 0.010689990281827016, 'mean_word_length': 2.4563758389261743, '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': '1181844', 'n_tokens_mistral': 322, 'n_tokens_neox': 308, 'n_words': 87}