<commit_before>name: Build

on: push

jobs:
  build-upload:
    runs-on: ubuntu-latest
    name: Build
    steps:
      - uses: actions/checkout@v2

      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: "3.8"

      - name: Install build tools
        run: |
          sudo apt-get update
          sudo apt-get -y install libusb-1.0-0 cmake srecord
          pip install -U pyserial

      - id: build
        name: Build
        env:
          SHA: ${{ github.event.head }}
        run: |
          fname=$(./scripts/build-firmware | tail -1)
          echo "::set-output name=fname::$fname"

      - uses: keithweaver/aws-s3-github-action@v1.0.0
        name: Copy build to AWS
        with:
          command: cp
          source: build/${{ steps.build.outputs.fname }}
          destination: s3://konnected-io/builds/
          aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws_region: us-east-2<commit_msg>remove unnecessary env<commit_after>name: Build

on: push

jobs:
  build-upload:
    runs-on: ubuntu-latest
    name: Build
    steps:
      - uses: actions/checkout@v2

      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: "3.8"

      - name: Install build tools
        run: |
          sudo apt-get update
          sudo apt-get -y install libusb-1.0-0 cmake srecord
          pip install -U pyserial

      - id: build
        name: Build
        run: |
          fname=$(./scripts/build-firmware | tail -1)
          echo "::set-output name=fname::$fname"

      - uses: keithweaver/aws-s3-github-action@v1.0.0
        name: Copy build to AWS
        with:
          command: cp
          source: build/${{ steps.build.outputs.fname }}
          destination: s3://konnected-io/builds/
          aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
          aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          aws_region: us-east-2
{'fraction_non_alphanumeric': 0.11138132295719845, 'fraction_numerical': 0.013618677042801557, 'mean_word_length': 1.7797297297297296, 'pattern_counts': {'":': 2, '<': 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': '5276442', 'n_tokens_mistral': 684, 'n_tokens_neox': 663, 'n_words': 150}