<commit_before>
name: Build docs

on:
  push:
    branches: [ '*' ]
    tags: [ '*' ]
  pull_request:
    branches: [ master, 'maint/*' ]

jobs:
  build:
    if: "!contains(github.event.head_commit.message, '[skip ci]')"
    runs-on: docker.pkg.github.com/nipreps-containers/miniconda/miniconda:py38_1.3.2

    steps:
    - uses: actions/checkout@v2
      with:
        ssh-key: "${{ secrets.NIPREPS_DEPLOY }}"
        fetch-depth: 0
    - uses: ammaraskar/sphinx-action@master
      with:
        docs-folder: "docs/"
        build-command: |
          if [[ "$GITHUB_REF" == refs/tags/* ]]; then
            CURBRANCH=${GITHUB_REF##*/}
          elif [[ "$GITHUB_REF" == refs/heads/* ]]; then
            CURBRANCH=${GITHUB_REF##*/}
          fi
          # Remove forward slashes
          CURBRANCH=$( echo $CURBRANCH | sed 's+/+_+g' )
          make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH="${CURBRANCH:-html}" html
<commit_msg>enh: set GHA workflow to work on ubuntu<commit_after>
name: Build docs

on:
  push:
    branches: [ '*' ]
    tags: [ '*' ]
  pull_request:
    branches: [ master, 'maint/*' ]

jobs:
  build:
    if: "!contains(github.event.head_commit.message, '[skip ci]')"
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Determine current branch/tag name
      run: |
        if [[ "$GITHUB_REF" == refs/tags/* ]]; then
          CURBRANCH=${GITHUB_REF##*/}
        elif [[ "$GITHUB_REF" == refs/heads/* ]]; then
          CURBRANCH=${GITHUB_REF##*/}
        fi
        # Remove forward slashes
        CURBRANCH=$( echo $CURBRANCH | sed 's+/+_+g' )
        echo "CURBRANCH=${CURBRANCH}" >> ${GITHUB_ENV}
        echo "Building branch/tag ${CURBRANCH:-<unkwown>}"

    - uses: ammaraskar/sphinx-action@master
      with:
        docs-folder: "docs/"
        pre-build-command: apt-get update -y && apt-get install -y graphviz
        build-command: make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" CURBRANCH="${CURBRANCH:-html}" html

{'fraction_non_alphanumeric': 0.16683266932270915, 'fraction_numerical': 0.00398406374501992, 'mean_word_length': 2.4108658743633278, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '4016152', 'n_tokens_mistral': 768, 'n_tokens_neox': 735, 'n_words': 143}