chore(experiments): revamp Experimentation docs #17044
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Non-Blocking Basic Checks | |
on: | |
- pull_request | |
jobs: | |
standard_checks: | |
name: Spelling | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install codespell with pip | |
run: | | |
python -m pip install -U pip | |
python -m pip install git+https://github.com/yakkomajuri/codespell.git | |
# Replaced by JS checks (remove when sure JS checks are working) | |
# - name: Install requests with pip | |
# run: | | |
# python -m pip install requests | |
- name: Configure Git | |
run: | | |
git fetch origin master:master | |
git config user.name PostHog Bot | |
git config user.email [email protected] | |
- name: Fix typos | |
run: | | |
codespell ./contents -w -S "./contents/images/*,./contents/docs/_media/*" -q 8 -I ./.codespellignore | |
git add . | |
[ "$(git status -s)" = "" ] && exit 0 || git commit -m "Fix typos" | |
- name: Push changes | |
run: | | |
git push |