Skip to content

Help Gerald handle files that it can't read. #209

Help Gerald handle files that it can't read.

Help Gerald handle files that it can't read. #209

Workflow file for this run

# AUTOGENERATED by workflow-preprocessor.js from ../.github/workflow-templates/pr-autofix.yml
name: Autofixers
'on':
- pull_request
jobs:
autofix:
runs-on: ubuntu-latest
if: github.actor != 'khan-actions-bot'
steps:
- name: "\U0001F53D Start setup [checkout]"
run: echo "Setting something up"
- uses: actions/checkout@v1
name: get the repo
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: "\U0001F53C Finished setup [checkout]"
run: echo "Finished setting it up"
- id: paths__github_workflow_templates_
name: 'Check paths: .github/workflow-templates/**'
run: >-
BASE=${GITHUB_BASE_REF:-HEAD~1}
if [[ -n $(git diff --name-only refs/remotes/origin/$BASE --relative |
grep '^\.github/workflow-templates/.*$') ]]
then
echo "::set-output name=changed::true"
exit 0
fi
echo "::set-output name=changed::false"
exit 0
- id: paths_src_
name: 'Check paths: src/**'
run: >-
BASE=${GITHUB_BASE_REF:-HEAD~1}
if [[ -n $(git diff --name-only refs/remotes/origin/$BASE --relative |
grep '^src/.*$') ]]
then
echo "::set-output name=changed::true"
exit 0
fi
echo "::set-output name=changed::false"
exit 0
- run: yarn
name: '▶️ Setup yarn: '
- name: Rebuild github actions workflow
run: yarn make-workflows
if: steps.paths__github_workflow_templates_.outputs.changed == 'true'
- name: Run prettier
run: >-
node ./node_modules/actions-utils/list-changed-files.js | grep
'.*\.js$' | xargs npm run -s format-files
- name: Rebuild our "dist" file
run: yarn build
if: steps.paths_src_.outputs.changed == 'true'
- uses: Khan/autofix-commit-action@master
env:
GITHUB_TOKEN: '${{ secrets.KHAN_ACTIONS_BOT_TOKEN }}'