<commit_before>
on:
  workflow_dispatch:
  push:
    tags:
      - "*"
    branches: [master, main]
  pull_request:
    branches: [master, main]
    types:
      - opened
      - synchronize
      - reopened
      - closed

jobs:
  check:
    strategy:
      matrix:
        os: ["ubuntu-latest"]
        version: ["2.12.16","2.13.8"]
        jdk: [graalvm@11]
    runs-on: ${{ matrix.os }} 
    steps:
      - name: Checkout current branch
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Cache sbt
        uses: actions/cache@v2
        with:
          path: |
            ~/.sbt
            ~/.ivy2/cache
            ~/.coursier/cache/v1
            ~/.cache/coursier/v1
            ~/AppData/Local/Coursier/Cache/v1
            ~/Library/Caches/Coursier/v1
          key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
      - name: lint
        run: >
          sbt ++${{ matrix.version }}
          scalafmtCheck
          test:scalafmtCheck
          scalafmtSbtCheck
      - name: test with coverage
        if: matrix.version == '2.12.16'
        run: >
          sbt ++${{ matrix.version }}
          coverage
          startDynamodbLocal
          test
          dynamodbLocalTestCleanup
          stopDynamodbLocal
      - name: test without coverage
        if: matrix.version == '2.13.8'
        run: >
          sbt ++${{ matrix.version }}
          startDynamodbLocal
          test
          dynamodbLocalTestCleanup
          stopDynamodbLocal
      - name: cleanup
        run: bash <(curl -s https://codecov.io/bash)
  gen_microsite:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout current branch
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: setup ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '2.6.0'
          bundler-cache: true
      - name: setup jekyll
        run: gem install jekyll -v 4.0.0
      - name: gen microsite
        run: sbt startDynamodbLocal makeMicrosite stopDynamodbLocal
  release:
    needs: [check,gen_microsite]
    runs-on: ubuntu-latest
    steps:
      - name: Checkout current branch
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: release
        run: sbt ci-release
        env:
          PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
          PGP_SECRET: ${{ secrets.PGP_SECRET }}
          SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
          SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}<commit_msg>Run release only push tag (#1594)<commit_after>
on:
  workflow_dispatch:
  push:
    tags:
      - "*"
    branches: [master, main]
  pull_request:
    branches: [master, main]
    types:
      - opened
      - synchronize
      - reopened
      - closed

jobs:
  check:
    strategy:
      matrix:
        os: ["ubuntu-latest"]
        version: ["2.12.16","2.13.8"]
        jdk: [graalvm@11]
    runs-on: ${{ matrix.os }} 
    steps:
      - name: Checkout current branch
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: Cache sbt
        uses: actions/cache@v2
        with:
          path: |
            ~/.sbt
            ~/.ivy2/cache
            ~/.coursier/cache/v1
            ~/.cache/coursier/v1
            ~/AppData/Local/Coursier/Cache/v1
            ~/Library/Caches/Coursier/v1
          key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
      - name: lint
        run: >
          sbt ++${{ matrix.version }}
          scalafmtCheck
          test:scalafmtCheck
          scalafmtSbtCheck
      - name: test with coverage
        if: matrix.version == '2.12.16'
        run: >
          sbt ++${{ matrix.version }}
          coverage
          startDynamodbLocal
          test
          dynamodbLocalTestCleanup
          stopDynamodbLocal
      - name: test without coverage
        if: matrix.version == '2.13.8'
        run: >
          sbt ++${{ matrix.version }}
          startDynamodbLocal
          test
          dynamodbLocalTestCleanup
          stopDynamodbLocal
      - name: cleanup
        run: bash <(curl -s https://codecov.io/bash)
  gen_microsite:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout current branch
        uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: setup ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: '2.6.0'
          bundler-cache: true
      - name: setup jekyll
        run: gem install jekyll -v 4.0.0
      - name: gen microsite
        run: sbt startDynamodbLocal makeMicrosite stopDynamodbLocal
  release:
    if: startsWith(github.ref, 'refs/tags/v')
    needs: [check,gen_microsite]
    runs-on: ubuntu-latest
    steps:
      - name: Checkout current branch
        uses: actions/checkout@v3
        with:
          fetch-depth: 0
      - name: release
        run: sbt ci-release
        env:
          PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
          PGP_SECRET: ${{ secrets.PGP_SECRET }}
          SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
          SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
{'fraction_non_alphanumeric': 0.11394817073170732, 'fraction_numerical': 0.01600609756097561, 'mean_word_length': 1.621878121878122, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '7626436', 'n_tokens_mistral': 1771, 'n_tokens_neox': 1685, 'n_words': 348}