<commit_before>name: Update Dependencies
on:
  schedule:
    # run every 24 hours at 1 AM
    - cron: "1 */24 * * *"
  workflow_dispatch:

jobs:
  generate_branches:
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{ steps.set-matrix.outputs.matrix }}
    steps:
      - name: output branches list
        id: set-matrix
        run: |
          set -euo pipefail

          branches=$(git ls-remote --heads https://github.com/ibis-project/ibis.git \
              | sed -e 's#\t# #g' -e 's#refs/heads/##g' \
              | cut -d ' ' -f2 \
              | grep -P '\d+\.x\.x' \
              | xargs -I {} printf '"%s"' \
              | jq -s '{branch: .}')

          echo "::set-output name=matrix::$branches"

  niv_update:
    runs-on: ubuntu-latest
    needs:
      - generate_branches
    strategy:
      matrix: ${{ fromJSON(needs.generate_branches.outputs.matrix) }}
    steps:
      - uses: actions/checkout@v3

      - uses: tibdex/github-app-token@v1
        id: generate_pr_token
        with:
          app_id: ${{ secrets.SQUAWK_BOT_APP_ID }}
          private_key: ${{ secrets.SQUAWK_BOT_APP_PRIVATE_KEY }}

      - uses: tibdex/github-app-token@v1
        id: generate_pr_approval_token
        with:
          app_id: ${{ secrets.PR_APPROVAL_BOT_APP_ID }}
          private_key: ${{ secrets.PR_APPROVAL_BOT_APP_PRIVATE_KEY }}

      - uses: cpcloud/compare-commits-action@v5.0.19<commit_msg>ci: rename ibis-rebase-nightly workflow jobs<commit_after>name: Update Release Branches
on:
  schedule:
    # run every 24 hours at 1 AM
    - cron: "1 */24 * * *"
  workflow_dispatch:

jobs:
  generate_branches:
    name: Query Release Branches
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{ steps.set-matrix.outputs.matrix }}
    steps:
      - name: output branches list
        id: set-matrix
        run: |
          set -euo pipefail

          branches=$(git ls-remote --heads https://github.com/ibis-project/ibis.git \
              | sed -e 's#\t# #g' -e 's#refs/heads/##g' \
              | cut -d ' ' -f2 \
              | grep -P '\d+\.x\.x' \
              | xargs printf '"%s"' \
              | jq -s '{branch: .}')

          echo "::set-output name=matrix::$branches"

  rebase_branch:
    name: Rebase ${{ matrix.branch }}
    runs-on: ubuntu-latest
    needs:
      - generate_branches
    strategy:
      matrix: ${{ fromJSON(needs.generate_branches.outputs.matrix) }}
    steps:
      - uses: actions/checkout@v3

      - uses: tibdex/github-app-token@v1
        id: generate_pr_token
        with:
          app_id: ${{ secrets.SQUAWK_BOT_APP_ID }}
          private_key: ${{ secrets.SQUAWK_BOT_APP_PRIVATE_KEY }}

      - uses: tibdex/github-app-token@v1
        id: generate_pr_approval_token
        with:
          app_id: ${{ secrets.PR_APPROVAL_BOT_APP_ID }}
          private_key: ${{ secrets.PR_APPROVAL_BOT_APP_PRIVATE_KEY }}

      - uses: cpcloud/compare-commits-action@v5.0.19
{'fraction_non_alphanumeric': 0.13405920381082, 'fraction_numerical': 0.00952705001701259, 'mean_word_length': 1.9667003027245207, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5551121', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1011, 'n_words': 192}