<commit_before>name: Build and push to docker

# Controls when the action will run.
on:
  # Triggers the workflow on push or pull request events but only for the dev branch
  push:
    tags:
      - release/*
    branches:
      - dev

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
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 represent a sequence of tasks that will be executed as part of the job
    steps:
      - name: Generate staging .env file
        run: 'curl $ENV_URL -o .env'
        env:
          ENV_URL: ${{secrets.STAGING_ENV_URL}}
        if: ${{ startsWith(github.ref, 'refs/tags/release') }}

      - name: Generate production .env file
        run: 'curl $ENV_URL -o .env'
        env:
          ENV_URL: ${{secrets.PRODUCTION_ENV_URL}}
        if: ${{ !startsWith(github.ref, 'refs/tags/release') }}

      - name: Checkout repo
        uses: actions/checkout@v2

      - name: Login to Docker Hub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKER_HUB_USERNAME }}
          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

      - name: Set up Docker Buildx
        id: buildx
        uses: docker/setup-buildx-action@v1
<commit_msg>Fix reversed condition in workflow<commit_after>name: Build and push to docker

# Controls when the action will run.
on:
  # Triggers the workflow on push or pull request events but only for the dev branch
  push:
    tags:
      - release/*
    branches:
      - dev

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
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 represent a sequence of tasks that will be executed as part of the job
    steps:
      - name: Generate staging .env file
        run: 'curl $ENV_URL -o .env'
        env:
          ENV_URL: ${{secrets.STAGING_ENV_URL}}
        if: ${{ !startsWith(github.ref, 'refs/tags/release') }}

      - name: Generate production .env file
        run: 'curl $ENV_URL -o .env'
        env:
          ENV_URL: ${{secrets.PRODUCTION_ENV_URL}}
        if: ${{ startsWith(github.ref, 'refs/tags/release') }}

      - name: Checkout repo
        uses: actions/checkout@v2

      - name: Login to Docker Hub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKER_HUB_USERNAME }}
          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

      - name: Set up Docker Buildx
        id: buildx
        uses: docker/setup-buildx-action@v1

{'fraction_non_alphanumeric': 0.08680675163623837, 'fraction_numerical': 0.0020668274199104374, 'mean_word_length': 2.3728222996515678, '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': '326946', 'n_tokens_mistral': 923, 'n_tokens_neox': 854, 'n_words': 322}