<commit_before>name: Deploy

on:
  # manually triggered. Note this workflow needs to be in the master (default) branch to work.
  workflow_dispatch:
    inputs:
      branch:
        description: 'Branch to deploy'
        required: true
        default: 'master'

  # (other approaches to triggering this workflow were considered, including release PR approvals, comments, etc. However they each had serious drawbacks.)

jobs:
  release:
    runs-on: ubuntu-latest
    environment: Public Release

    steps:
    - uses: actions/checkout@v3
      with:
        path: rover-android

    - name: set up JDK 11
      uses: actions/setup-java@v3
      with:
        java-version: '11'
        distribution: 'temurin'
        cache: gradle

    # handle maven:
    - uses: actions/checkout@v3
      with:
        repository: judoapp/judo-maven
        path: judo-maven
        token: ${{ secrets.BOT_GITHUB_TOKEN }}

      name: Checkout judo-maven repo

    - run: |
        git config --global user.name "Judo Release Bot 🤖"
        git config --global user.email <EMAIL>
      name: "Configure git identity for maven repo and public repo push"

    - name: Grant execute permission for gradlew
      run: chmod +x rover-android/gradlew

    - name: Build with Gradle
      env:
        DEPLOY_MAVEN_PATH: ${{ github.workspace }}/judo-maven/maven
      run: |
        cd ${{ github.workspace }}/rover-android
        ./gradlew test sdk:assembleRelease sdk:publishProductionPublicationToMavenRepository

    # get the version number
    - name: Get version number from gradle task that sets VERSION output variable
      id: get_version
      run: |
        cd ${{ github.workspace }}/rover-android
        ./gradlew printVersionNumber

    - name: Push to Maven
      run: |
        cd ${{ github.workspace }}/judo-maven
        git add maven
        git commit -a -m "Releasing Rover Android ${{ steps.get_version.outputs.VERSION }}"
        git push<commit_msg>Add missing changes to deploy.yml<commit_after>name: Deploy

on:
  # manually triggered. Note this workflow needs to be in the master (default) branch to work.
  workflow_dispatch:
    inputs:
      branch:
        description: 'Branch to deploy'
        required: true
        default: 'master'

  # (other approaches to triggering this workflow were considered, including release PR approvals, comments, etc. However they each had serious drawbacks.)

jobs:
  release:
    runs-on: ubuntu-latest
    environment: Public Release

    steps:
    - uses: actions/checkout@v3
      with:
        path: rover-android

    - name: set up JDK 11
      uses: actions/setup-java@v3
      with:
        java-version: '11'
        distribution: 'temurin'
        cache: gradle

    # handle maven:
    - uses: actions/checkout@v3
      with:
        repository: judoapp/judo-maven
        path: judo-maven
        token: ${{ secrets.BOT_GITHUB_TOKEN }}

      name: Checkout judo-maven repo

    - run: |
        git config --global user.name "Judo Release Bot 🤖"
        git config --global user.email <EMAIL>
      name: "Configure git identity for maven repo and public repo push"

    - name: Grant execute permission for gradlew
      run: chmod +x rover-android/gradlew

    - name: Build with Gradle
      env:
        DEPLOY_MAVEN_PATH: ${{ github.workspace }}/judo-maven/maven
      run: |
        cd ${{ github.workspace }}/rover-android
        ./gradlew test :core:assembleRelease :core:publishReleasePublicationToMavenRepository notifications:assembleRelease notifications:publishReleasePublicationToMavenRepository location:assembleRelease location:publishReleasePublicationToMavenRepository debug:assembleRelease debug:publishReleasePublicationToMavenRepository ticketmaster:assembleRelease ticketmaster:publishReleasePublicationToMavenRepository advertising:assembleRelease advertising:publishReleasePublicationToMavenRepository experiences:assembleRelease experiences:publishReleasePublicationToMavenRepository

    # get the version number
    - name: Get version number from gradle task that sets VERSION output variable
      id: get_version
      run: |
        cd ${{ github.workspace }}/rover-android
        ./gradlew printVersionNumber

    - name: Push to Maven
      run: |
        cd ${{ github.workspace }}/judo-maven
        git add maven
        git commit -a -m "Releasing Rover Android ${{ steps.get_version.outputs.VERSION }}"
        git push
{'fraction_non_alphanumeric': 0.07925039512305261, 'fraction_numerical': 0.003160984420862497, 'mean_word_length': 2.716442953020134, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5973792', 'n_tokens_mistral': 1311, 'n_tokens_neox': 1220, 'n_words': 389}