<commit_before>name: 'ci'

on:
  push:
    branches: main

jobs:
  build:
    if: "!contains(github.event.head_commit.message, 'skip ci')"
    runs-on: ubuntu-latest
    steps:
      - name: Send job start webhook
        continue-on-error: true
        uses: appleboy/discord-action@4c19612
        with:
          webhook_id: ${{ secrets.WEBHOOK_ID }}
          webhook_token: ${{ secrets.WEBHOOK_TOKEN }}
          message: Starting build for commit ${{ github.sha }}
      - name: Checkout
        uses: actions/checkout@v2
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      - name: Set up Docker Buildx
        uses: docker/setup-qemu-action@v1
      - name: Login to GHCR
        uses: docker/login-action@v1
        with:
          # github username and personal access token
          registry: ghcr.io
          username: ${{ secrets.CR_USERNAME }}
          password: ${{ secrets.CR_PAT }}
      - name: Build Docker image
        id: docker_build
        uses: docker/build-push-action@v2.1.0
        with:
          context: .
          file: ./Dockerfile
          platforms: linux/amd64
          push: false
          # Can't auto-push with v2 right now...
          tags: ghcr.io/ihaveamac/kurisu:latest
          build-args: COMMIT=${{ github.sha }},BRANCH=${{ github.ref }}
      - name: Image digest
        run: echo ${{ steps.docker_build.outputs.digest }}
      - name: Send push webhook
        continue-on-error: true
        uses: appleboy/discord-action@4c19612
        with:
          webhook_id: ${{ secrets.WEBHOOK_ID }}
          webhook_token: ${{ secrets.WEBHOOK_TOKEN }}<commit_msg>fix incorrect action<commit_after>name: 'ci'

on:
  push:
    branches: main

jobs:
  build:
    if: "!contains(github.event.head_commit.message, 'skip ci')"
    runs-on: ubuntu-latest
    steps:
      - name: Send job start webhook
        continue-on-error: true
        uses: appleboy/discord-action@4c19612
        with:
          webhook_id: ${{ secrets.WEBHOOK_ID }}
          webhook_token: ${{ secrets.WEBHOOK_TOKEN }}
          message: Starting build for commit ${{ github.sha }}
      - name: Checkout
        uses: actions/checkout@v2
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1
      - name: Login to GHCR
        uses: docker/login-action@v1
        with:
          # github username and personal access token
          registry: ghcr.io
          username: ${{ secrets.CR_USERNAME }}
          password: ${{ secrets.CR_PAT }}
      - name: Build Docker image
        id: docker_build
        uses: docker/build-push-action@v2.1.0
        with:
          context: .
          file: ./Dockerfile
          platforms: linux/amd64
          push: false
          # Can't auto-push with v2 right now...
          tags: ghcr.io/ihaveamac/kurisu:latest
          build-args: COMMIT=${{ github.sha }},BRANCH=${{ github.ref }}
      - name: Image digest
        run: echo ${{ steps.docker_build.outputs.digest }}
      - name: Send push webhook
        continue-on-error: true
        uses: appleboy/discord-action@4c19612
        with:
          webhook_id: ${{ secrets.WEBHOOK_ID }}
          webhook_token: ${{ secrets.WEBHOOK_TOKEN }}
{'fraction_non_alphanumeric': 0.11141552511415526, 'fraction_numerical': 0.013394216133942162, 'mean_word_length': 1.947085201793722, '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': '7359829', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1008, 'n_words': 240}