Skip to content

draft autoformat bot #1

draft autoformat bot

draft autoformat bot #1

Workflow file for this run

name: PR Formatter

Check failure on line 1 in .github/workflows/prformatter.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/prformatter.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: build
env:
JULIA_NUM_THREADS: 2
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Setup Python
uses: actions/setup-python@v3
- name: Run pre-commit
uses: pre-commit/[email protected]
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "PR Pre-Commit Bot"
git commit -m "add bot commits" -a
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}