<commit_before>name: CI / CD 
on: 
  push:
  workflow_dispatch:
jobs: 
  Build-and-publish:
    name: Build, Test Publish
    runs-on: ubuntu-latest
    steps: 
      - name: Checkout
        uses: actions/checkout@v3

      - name: Build and test container
        env: 
          TrelloAPIKey: '${{ secrets.TRELLOAPIKEY }}'
          TrelloUserToken: '${{ secrets.TRELLOUSERTOKEN }}'
        run: |
          ./buildAndTestContainer.sh
      
      - name: Log in to the Container registry
        if: ${{ github.ref == 'refs/heads/master' }}
        uses: docker/login-action@v1
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Publish image
        if: ${{ github.ref == 'refs/heads/master' }}
        run: |
          docker tag andmos/readinglist:$(git rev-parse --short HEAD) ghcr.io/andmos/readinglist:latest; 
          docker tag ghcr.io/andmos/readinglist:latest ghcr.io/andmos/readinglist:$(git rev-parse --short HEAD); 
          docker push ghcr.io/andmos/readinglist:$(git rev-parse --short HEAD); 
          docker push ghcr.io/andmos/readinglist:latest; <commit_msg>Bump docker/login-action from 1 to 2 (#122)<commit_after>name: CI / CD 
on: 
  push:
  workflow_dispatch:
jobs: 
  Build-and-publish:
    name: Build, Test Publish
    runs-on: ubuntu-latest
    steps: 
      - name: Checkout
        uses: actions/checkout@v3

      - name: Build and test container
        env: 
          TrelloAPIKey: '${{ secrets.TRELLOAPIKEY }}'
          TrelloUserToken: '${{ secrets.TRELLOUSERTOKEN }}'
        run: |
          ./buildAndTestContainer.sh
      
      - name: Log in to the Container registry
        if: ${{ github.ref == 'refs/heads/master' }}
        uses: docker/login-action@v2
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}

      - name: Publish image
        if: ${{ github.ref == 'refs/heads/master' }}
        run: |
          docker tag andmos/readinglist:$(git rev-parse --short HEAD) ghcr.io/andmos/readinglist:latest; 
          docker tag ghcr.io/andmos/readinglist:latest ghcr.io/andmos/readinglist:$(git rev-parse --short HEAD); 
          docker push ghcr.io/andmos/readinglist:$(git rev-parse --short HEAD); 
          docker push ghcr.io/andmos/readinglist:latest; 
{'fraction_non_alphanumeric': 0.12437185929648241, 'fraction_numerical': 0.0037688442211055275, 'mean_word_length': 2.147562582345191, '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': '4005717', 'n_tokens_mistral': 823, 'n_tokens_neox': 741, 'n_words': 166}